diff options
author | Gerd Moellmann <gerd@gnu.org> | 2001-10-07 00:20:39 +0000 |
---|---|---|
committer | Gerd Moellmann <gerd@gnu.org> | 2001-10-07 00:20:39 +0000 |
commit | c4aeb9d84deac0ddd192ef19a1dae3026f859164 (patch) | |
tree | c87d4e6b39861c007e5c650030d58ad8d02d1cfd /src | |
parent | d9eb1c3d5284b6a3dc6ceba6e6bebb799ebe6fd2 (diff) | |
download | emacs-c4aeb9d84deac0ddd192ef19a1dae3026f859164.tar.gz |
(parse_modifiers, apply_modifiers): Use VALMASK.
Diffstat (limited to 'src')
-rw-r--r-- | src/keyboard.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 9f1a7b38ea6..b9b825e16b3 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); |