mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-12 16:23:57 +00:00
(CHAR_TABLE_REF): Check if IDX is negative or not.
This commit is contained in:
parent
da63a5fee1
commit
6185c1c05b
@ -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…
Reference in New Issue
Block a user