Commit 6185c1c0 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(CHAR_TABLE_REF): Check if IDX is negative or not.

parent da63a5fe
......@@ -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) \
......
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