From: Kenichi Handa Date: Mon, 16 Nov 1998 06:26:27 +0000 (+0000) Subject: (CHAR_TABLE_REF): Check if IDX is negative or not. X-Git-Tag: emacs-20.4~1228 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6185c1c05b28d5ba2e4b082e96de98d325a609d0;p=emacs.git (CHAR_TABLE_REF): Check if IDX is negative or not. --- 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) \