changeset 23776:529965d3c653

(Fsingle_key_description): Fix previous change.
author Richard M. Stallman <rms@gnu.org>
date Sat, 28 Nov 1998 22:16:09 +0000
parents e2b39708c646
children 5d10105c2906
files src/keymap.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/keymap.c	Sat Nov 28 02:42:51 1998 +0000
+++ b/src/keymap.c	Sat Nov 28 22:16:09 1998 +0000
@@ -1860,11 +1860,12 @@
   if (INTEGERP (key))		/* Normal character */
     {
       unsigned int charset, c1, c2;
-
-      if (SINGLE_BYTE_CHAR_P (XINT (key)))
+      int without_bits = XINT (key) & ~((-1) << CHARACTERBITS);
+
+      if (SINGLE_BYTE_CHAR_P (without_bits))
 	charset = 0;
       else
-	SPLIT_NON_ASCII_CHAR (XINT (key), charset, c1, c2);
+	SPLIT_NON_ASCII_CHAR (without_bits, charset, c1, c2);
 
       if (charset
 	  && ((c1 >= 0 && c1 < 32)