(CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
authortomo <tomo>
Fri, 27 Aug 1999 06:57:06 +0000 (06:57 +0000)
committertomo <tomo>
Fri, 27 Aug 1999 06:57:06 +0000 (06:57 +0000)
`NUM_LEADING_BYTES' in assert.

src/mule-charset.h

index 7686f57..d149930 100644 (file)
@@ -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];
 }