Commit 38cbfed4 authored by Stefan Monnier's avatar Stefan Monnier

(Flookup_key): Check INTEGERP before XINT.

parent 8bc285a2
......@@ -1240,7 +1240,7 @@ recognize the default bindings, just as `read-key-sequence' does. */)
c = Fevent_convert_list (c);
/* Turn the 8th bit of string chars into a meta modifier. */
if (XINT (c) & 0x80 && STRINGP (key))
if (INTEGERP (c) && XINT (c) & 0x80 && STRINGP (key))
XSETINT (c, (XINT (c) | meta_modifier) & ~0x80);
/* Allow string since binding for `menu-bar-select-buffer'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment