changeset 39641:39d3627c1c99

(parse_modifiers, apply_modifiers): Use VALMASK.
author Gerd Moellmann <gerd@gnu.org>
date Sun, 07 Oct 2001 00:20:39 +0000
parents 6f7166fc8eec
children a579268a4673
files src/keyboard.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Sun Oct 07 00:14:18 2001 +0000
+++ b/src/keyboard.c	Sun Oct 07 00:20:39 2001 +0000
@@ -5618,7 +5618,7 @@
 					 STRING_BYTES (XSYMBOL (symbol)->name) - end),
 			    Qnil);
 
-      if (modifiers & ~(((EMACS_INT)1 << VALBITS) - 1))
+      if (modifiers & ~VALMASK)
 	abort ();
       XSETFASTINT (mask, modifiers);
       elements = Fcons (unmodified, Fcons (mask, Qnil));
@@ -5655,7 +5655,7 @@
   Lisp_Object cache, index, entry, new_symbol;
 
   /* Mask out upper bits.  We don't know where this value's been.  */
-  modifiers &= ((EMACS_INT)1 << VALBITS) - 1;
+  modifiers &= VALMASK;
 
   /* The click modifier never figures into cache indices.  */
   cache = Fget (base, Qmodifier_cache);