From 6185c1c05b28d5ba2e4b082e96de98d325a609d0 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Mon, 16 Nov 1998 06:26:27 +0000 Subject: [PATCH] (CHAR_TABLE_REF): Check if IDX is negative or not. --- src/lisp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lisp.h b/src/lisp.h index 7f83269c88e..9b533f528ed 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -641,7 +641,7 @@ struct Lisp_Vector and 8-bit Europeans characters. For these characters, do not check validity of CT. Do not follow parent. */ #define CHAR_TABLE_REF(CT, IDX) \ - ((IDX) < CHAR_TABLE_SINGLE_BYTE_SLOTS \ + ((IDX) >= 0 && (IDX) < CHAR_TABLE_SINGLE_BYTE_SLOTS \ ? (!NILP (XCHAR_TABLE (CT)->contents[IDX]) \ ? XCHAR_TABLE (CT)->contents[IDX] \ : XCHAR_TABLE (CT)->defalt) \ -- 2.39.2