Commit 07129d9e authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead

of GLYPH_MASK_CHAR.
parent 3b0fee46
......@@ -490,7 +490,8 @@ extern int iso_charset_table[2][2][128];
/* Return how many bytes C will occupy in a multibyte buffer. */
#define CHAR_BYTES(c) \
((SINGLE_BYTE_CHAR_P ((c)) || ((c) & ~GLYPH_MASK_CHAR)) ? 1 : char_bytes (c))
((SINGLE_BYTE_CHAR_P ((c)) || ((c) & ~((1 << CHARACTERBITS) - 1))) \
? 1 : char_bytes (c))
/* The following two macros CHAR_STRING and STRING_CHAR are the main
entry points to convert between Emacs two types of character
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment