]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix template for module functions
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 28 Nov 2016 15:48:50 +0000 (07:48 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 28 Nov 2016 15:49:28 +0000 (07:49 -0800)
Reported by Syohei YOSHIDA (Bug#24932).
* modules/modhelp.py (TEMPLATES):
c_func’s 2nd arg is ptrdiff_t, not int.

modules/modhelp.py

index 5d8f89b31bc1f0f4bd40137eca817b656d9093e2..445cb3b1d09655c67f1e792b5a95eb1e8db882f4 100755 (executable)
@@ -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");
 }