aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorKen Raeburn <[email protected]>2000-06-18 20:14:37 +0000
committerKen Raeburn <[email protected]>2000-06-18 20:14:37 +0000
commit52e386c2dc5082721412b9cccf961a5ab25eec0b (patch)
treed251d0cc4fc034253a24a5cf6e29b0c287e28ad9 /src/keyboard.c
parentdc1741f3a3cecb04f62708762aa586a420cafa08 (diff)
fix up more Lisp_Object/int conversion issues
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index fe3da4be8a..9a2f18f043 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -7974,7 +7974,8 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last,
string = POSN_STRING (EVENT_START (key));
pos = XCDR (string);
string = XCAR (string);
- if (pos >= 0 && pos < XSTRING (string)->size)
+ if (XINT (pos) >= 0
+ && XINT (pos) < XSTRING (string)->size)
{
map = Fget_text_property (pos, Qlocal_map, string);
if (!NILP (map))