changeset 69870:bc9116711ea3

(describe_map): Don't use XINT if we haven't checked INTEGERP.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sat, 08 Apr 2006 14:20:10 +0000
parents 89bc86c44d7c
children 8a7ecbca8672
files src/keymap.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/keymap.c	Sat Apr 08 14:15:04 2006 +0000
+++ b/src/keymap.c	Sat Apr 08 14:20:10 2006 +0000
@@ -3343,7 +3343,7 @@
       if (INTEGERP (vect[i].event))
 	{
 	  while (i + 1 < slots_used
-		 && XINT (vect[i + 1].event) == XINT (vect[i].event) + 1
+		 && EQ (vect[i+1].event, make_number (XINT (vect[i].event) + 1))
 		 && !NILP (Fequal (vect[i + 1].definition, definition))
 		 && vect[i].shadowed == vect[i + 1].shadowed)
 	    i++;