From: Paul Eggert Date: Tue, 27 Sep 2011 16:00:55 +0000 (-0700) Subject: * keymap.c.c (Fdefine_key): Use ptrdiff_t, not int. X-Git-Tag: emacs-24.2.90~471^2~6^2~179 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=88cc3dabc9308cba0d43b9afa393ec8eb285ed7c;p=emacs.git * keymap.c.c (Fdefine_key): Use ptrdiff_t, not int. --- diff --git a/src/keymap.c b/src/keymap.c index 03e4688eaad..6287f6a4a44 100644 --- a/src/keymap.c +++ b/src/keymap.c @@ -1143,7 +1143,7 @@ binding KEY to DEF is added at the front of KEYMAP. */) if (VECTORP (def) && ASIZE (def) > 0 && CONSP (AREF (def, 0))) { /* DEF is apparently an XEmacs-style keyboard macro. */ Lisp_Object tmp = Fmake_vector (make_number (ASIZE (def)), Qnil); - int i = ASIZE (def); + ptrdiff_t i = ASIZE (def); while (--i >= 0) { Lisp_Object defi = AREF (def, i);