From: Paul Eggert Date: Mon, 28 Nov 2016 15:48:50 +0000 (-0800) Subject: Fix template for module functions X-Git-Tag: emacs-26.0.90~1255 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1228055b320dbed92ab400c4a95813a2b8023909;p=emacs.git Fix template for module functions Reported by Syohei YOSHIDA (Bug#24932). * modules/modhelp.py (TEMPLATES): c_func’s 2nd arg is ptrdiff_t, not int. --- diff --git a/modules/modhelp.py b/modules/modhelp.py index 5d8f89b31bc..445cb3b1d09 100755 --- a/modules/modhelp.py +++ b/modules/modhelp.py @@ -154,7 +154,7 @@ all: ${module}.so ${module}.doc int plugin_is_GPL_compatible; static emacs_value -${c_func} (emacs_env *env, int nargs, emacs_value args[], void *data) +${c_func} (emacs_env *env, ptrdiff_t nargs, emacs_value args[], void *data) { return env->intern (env, "t"); }