aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa1998-11-16 06:26:27 +0000
committerKenichi Handa1998-11-16 06:26:27 +0000
commit6185c1c05b28d5ba2e4b082e96de98d325a609d0 (patch)
tree1cf1aa0b9531c5fb0ea2f87df86fe6c697397aa0 /src
parentda63a5fee1b6dc10e6ddad9c61d3f59568541f27 (diff)
downloademacs-6185c1c05b28d5ba2e4b082e96de98d325a609d0.tar.gz
emacs-6185c1c05b28d5ba2e4b082e96de98d325a609d0.zip
(CHAR_TABLE_REF): Check if IDX is negative or not.
Diffstat (limited to 'src')
-rw-r--r--src/lisp.h2
1 files changed, 1 insertions, 1 deletions
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
641 and 8-bit Europeans characters. For these characters, do not check 641 and 8-bit Europeans characters. For these characters, do not check
642 validity of CT. Do not follow parent. */ 642 validity of CT. Do not follow parent. */
643#define CHAR_TABLE_REF(CT, IDX) \ 643#define CHAR_TABLE_REF(CT, IDX) \
644 ((IDX) < CHAR_TABLE_SINGLE_BYTE_SLOTS \ 644 ((IDX) >= 0 && (IDX) < CHAR_TABLE_SINGLE_BYTE_SLOTS \
645 ? (!NILP (XCHAR_TABLE (CT)->contents[IDX]) \ 645 ? (!NILP (XCHAR_TABLE (CT)->contents[IDX]) \
646 ? XCHAR_TABLE (CT)->contents[IDX] \ 646 ? XCHAR_TABLE (CT)->contents[IDX] \
647 : XCHAR_TABLE (CT)->defalt) \ 647 : XCHAR_TABLE (CT)->defalt) \