aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorPaul Eggert2016-11-28 07:48:50 -0800
committerPaul Eggert2016-11-28 07:49:28 -0800
commit1228055b320dbed92ab400c4a95813a2b8023909 (patch)
treedaa3f37a4e7a833c3d1a64f7d9b8d30a0abf663c /modules
parentd020ff3eab01f9683485b35c0fc8b17708e9a6d1 (diff)
downloademacs-1228055b320dbed92ab400c4a95813a2b8023909.tar.gz
emacs-1228055b320dbed92ab400c4a95813a2b8023909.zip
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.
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/modhelp.py2
1 files changed, 1 insertions, 1 deletions
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
154int plugin_is_GPL_compatible; 154int plugin_is_GPL_compatible;
155 155
156static emacs_value 156static emacs_value
157${c_func} (emacs_env *env, int nargs, emacs_value args[], void *data) 157${c_func} (emacs_env *env, ptrdiff_t nargs, emacs_value args[], void *data)
158{ 158{
159 return env->intern (env, "t"); 159 return env->intern (env, "t");
160} 160}