Commit ae87e396 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

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

of GLYPH_MASK_CHAR.
parent 07129d9e
......@@ -1161,7 +1161,7 @@ char_bytes (c)
{
int charset;
if (SINGLE_BYTE_CHAR_P (c) || (c & ~GLYPH_MASK_CHAR))
if (SINGLE_BYTE_CHAR_P (c) || (c & ~((1 << CHARACTERBITS) - 1)))
return 1;
charset = CHAR_CHARSET (c);
......
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