* src/cmds.c (Fself_insert_command): Don't pass a non-integer to XINT.

This commit is contained in:
Stefan Monnier
2013-09-04 22:27:13 -04:00
parent 2a6f417413
commit a7e43722c7
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
2013-09-05 Stefan Monnier <monnier@iro.umontreal.ca>
* cmds.c (Fself_insert_command): Don't pass a non-integer to XINT.
2013-09-04 Paul Eggert <eggert@cs.ucla.edu>
* alloc.c (make_event_array): First arg is now ptrdiff_t, not int.

View File

@@ -304,7 +304,7 @@ At the end, it runs `post-self-insert-hook'. */)
/* Barf if the key that invoked this was not a character. */
if (!CHARACTERP (last_command_event))
bitch_at_user ();
{
else {
int character = translate_char (Vtranslation_table_for_input,
XINT (last_command_event));
int val = internal_self_insert (character, XFASTINT (n));