From 1228055b320dbed92ab400c4a95813a2b8023909 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 28 Nov 2016 07:48:50 -0800 Subject: Fix template for module functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported by Syohei YOSHIDA (Bug#24932). * modules/modhelp.py (TEMPLATES): c_func’s 2nd arg is ptrdiff_t, not int. --- modules/modhelp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- cgit v1.2.1