diff options
| author | Stefan Monnier | 2004-11-23 05:08:09 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-11-23 05:08:09 +0000 |
| commit | 38cbfed434294f7b3d3e1ef3598df3f38a57bd54 (patch) | |
| tree | 933e692e03ec63acff38680a6ad91e6087dc5f2e /src/keymap.c | |
| parent | 8bc285a288ee0d6db3a8350d6f62d51db350e2af (diff) | |
| download | emacs-38cbfed434294f7b3d3e1ef3598df3f38a57bd54.tar.gz emacs-38cbfed434294f7b3d3e1ef3598df3f38a57bd54.zip | |
(Flookup_key): Check INTEGERP before XINT.
Diffstat (limited to 'src/keymap.c')
| -rw-r--r-- | src/keymap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keymap.c b/src/keymap.c index 4062ff34ee9..99883415914 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -1240,7 +1240,7 @@ recognize the default bindings, just as `read-key-sequence' does. */) | |||
| 1240 | c = Fevent_convert_list (c); | 1240 | c = Fevent_convert_list (c); |
| 1241 | 1241 | ||
| 1242 | /* Turn the 8th bit of string chars into a meta modifier. */ | 1242 | /* Turn the 8th bit of string chars into a meta modifier. */ |
| 1243 | if (XINT (c) & 0x80 && STRINGP (key)) | 1243 | if (INTEGERP (c) && XINT (c) & 0x80 && STRINGP (key)) |
| 1244 | XSETINT (c, (XINT (c) | meta_modifier) & ~0x80); | 1244 | XSETINT (c, (XINT (c) | meta_modifier) & ~0x80); |
| 1245 | 1245 | ||
| 1246 | /* Allow string since binding for `menu-bar-select-buffer' | 1246 | /* Allow string since binding for `menu-bar-select-buffer' |