unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Syohei YOSHIDA <syohex@gmail.com>
To: 24932@debbugs.gnu.org
Cc: Syohei YOSHIDA <syohex@gmail.com>
Subject: bug#24932: [PATCH] Update module function signature
Date: Sun, 13 Nov 2016 11:06:18 +0900	[thread overview]
Message-ID: <20161113020618.22644-1-syohex@gmail.com> (raw)

Second argument of module function is ptrdiff_t, not int.
This fixes a compile warning.
---
 modules/modhelp.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/modhelp.py b/modules/modhelp.py
index 5d8f89b..445cb3b 100755
--- a/modules/modhelp.py
+++ b/modules/modhelp.py
@@ -154,7 +154,7 @@ def main():
 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");
 }
-- 
2.9.3






             reply	other threads:[~2016-11-13  2:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-13  2:06 Syohei YOSHIDA [this message]
2016-11-13 21:02 ` bug#24932: [PATCH] Update module function signature Daniel Colascione
2016-11-13 21:05   ` Daniel Colascione
2016-11-28 15:51 ` Paul Eggert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161113020618.22644-1-syohex@gmail.com \
    --to=syohex@gmail.com \
    --cc=24932@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).