This fixes a type error on hosts where ptrdiff_t is wider than int.
+2013-09-04 Paul Eggert <eggert@cs.ucla.edu>
+
+ * alloc.c (make_event_array): First arg is now ptrdiff_t, not int.
+ This fixes a type error on hosts where ptrdiff_t is wider than int.
+
2013-09-04 Stefan Monnier <monnier@iro.umontreal.ca>
* keyboard.c (read_key_sequence_vs): New function.
Any number of arguments, even zero arguments, are allowed. */
Lisp_Object
-make_event_array (register int nargs, Lisp_Object *args)
+make_event_array (ptrdiff_t nargs, Lisp_Object *args)
{
- int i;
+ ptrdiff_t i;
for (i = 0; i < nargs; i++)
/* The things that fit in a string
}
extern Lisp_Object make_multibyte_string (const char *, ptrdiff_t, ptrdiff_t);
-extern Lisp_Object make_event_array (int, Lisp_Object *);
+extern Lisp_Object make_event_array (ptrdiff_t, Lisp_Object *);
extern Lisp_Object make_uninit_string (EMACS_INT);
extern Lisp_Object make_uninit_multibyte_string (EMACS_INT, EMACS_INT);
extern Lisp_Object make_string_from_bytes (const char *, ptrdiff_t, ptrdiff_t);