(CHAR_TABLE_REF): Check if IDX is negative or not.
This commit is contained in:
parent
da63a5fee1
commit
6185c1c05b
1 changed files with 1 additions and 1 deletions
|
@ -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) \
|
||||
|
|
Loading…
Add table
Reference in a new issue