From: tomo Date: Fri, 27 Aug 1999 06:57:06 +0000 (+0000) Subject: (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and X-Git-Tag: r21-2-19-tomo-5~1 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=b0db37d2cc243f6871da658d7d6ba815de0b548c;p=chise%2Fxemacs-chise.git.1 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and `NUM_LEADING_BYTES' in assert. --- 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]; }