Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c4aeb9d8
Commit
c4aeb9d8
authored
Oct 07, 2001
by
Gerd Moellmann
Browse files
(parse_modifiers, apply_modifiers): Use VALMASK.
parent
d9eb1c3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/keyboard.c
src/keyboard.c
+2
-2
No files found.
src/keyboard.c
View file @
c4aeb9d8
...
...
@@ -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);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment