changeset 67994:2e977adcc0e5

(describe_map_compare): Yet another int/Lisp_Object mixup.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 03 Jan 2006 16:54:47 +0000
parents 29f5edda3fd3
children ab3fdc2bada6
files src/keymap.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/keymap.c	Tue Jan 03 09:16:39 2006 +0000
+++ b/src/keymap.c	Tue Jan 03 16:54:47 2006 +0000
@@ -3196,8 +3196,8 @@
   if (INTEGERP (a->event) && !INTEGERP (b->event))
     return -1;
   if (SYMBOLP (a->event) && SYMBOLP (b->event))
-    return (Fstring_lessp (a->event, b->event) ? -1
-	    : Fstring_lessp (b->event, a->event) ? 1
+    return (!NILP (Fstring_lessp (a->event, b->event)) ? -1
+	    : !NILP (Fstring_lessp (b->event, a->event)) ? 1
 	    : 0);
   return 0;
 }