]> git.eshelyaron.com Git - emacs.git/commit
Remove unnecessary checking in emacs-module.c
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 5 Jun 2017 06:52:10 +0000 (23:52 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 5 Jun 2017 06:53:47 +0000 (23:53 -0700)
commit620d65370afd319b706cea0eccffd0ee0ffd2e26
tree7f2f83a3946f489647e29e7c3d3a93b59773a86f
parentcef90102cb0366f26a9cf618497793d223d60a66
Remove unnecessary checking in emacs-module.c

* src/emacs-module.c (module_copy_string_contents):
Remove checking, as string lengths are always nonnegative and less
than STRING_BYTES_BOUND, and this is checked elsewhere.
(module_make_string): Check length against STRING_BYTES_BOUND, a
tighter bound than MOST_POSITIVE_FIXNUM.  (funcall_module): Don't
assume that an out-of-range integer is nonnegative.
src/emacs-module.c