]> git.eshelyaron.com Git - emacs.git/commit
Minor fixes for arity ranges in emacs modules
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 20 May 2017 20:43:19 +0000 (13:43 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 20 May 2017 20:43:56 +0000 (13:43 -0700)
commit848c90e3d43ed7baebab5f2d02d0a9601c6a142b
treecfed760dee64a5d4e7185b897e73e29ad52d9ab3
parent31fded0370c3aa6d2c4370cae21cdb7475873483
Minor fixes for arity ranges in emacs modules

* src/emacs-module.c (module_make_function):
Check that arities fit into fixnums, for func-arity’s benefit.
(funcall_module): Avoid unnecessary conversion to EMACS_INT.
(module_function_arity): Allow arities greater than SHRT_MAX.
src/emacs-module.c