From b0db37d2cc243f6871da658d7d6ba815de0b548c Mon Sep 17 00:00:00 2001 From: tomo Date: Fri, 27 Aug 1999 06:57:06 +0000 Subject: [PATCH] (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and `NUM_LEADING_BYTES' in assert. --- src/mule-charset.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mule-charset.h b/src/mule-charset.h index 7686f57..d149930 100644 --- a/src/mule-charset.h +++ b/src/mule-charset.h @@ -565,7 +565,8 @@ INLINE Lisp_Object CHARSET_BY_LEADING_BYTE (int lb); INLINE Lisp_Object CHARSET_BY_LEADING_BYTE (int lb) { - assert (lb >= 0x80 && lb <= 0xFF); + assert (lb >= MIN_LEADING_BYTE && + lb < (MIN_LEADING_BYTE + NUM_LEADING_BYTES)); return charset_by_leading_byte[lb - MIN_LEADING_BYTE]; } -- 1.7.10.4