aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorGerd Moellmann <[email protected]>2001-10-07 00:20:39 +0000
committerGerd Moellmann <[email protected]>2001-10-07 00:20:39 +0000
commitc4aeb9d84deac0ddd192ef19a1dae3026f859164 (patch)
treec87d4e6b39861c007e5c650030d58ad8d02d1cfd /src/keyboard.c
parentd9eb1c3d5284b6a3dc6ceba6e6bebb799ebe6fd2 (diff)
(parse_modifiers, apply_modifiers): Use VALMASK.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 9f1a7b38ea..b9b825e16b 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -5618,7 +5618,7 @@ parse_modifiers (symbol)
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 @@ apply_modifiers (modifiers, base)
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);