]> git.eshelyaron.com Git - emacs.git/commitdiff
(char_bytes): Use ((1 << CHARACTERBITS) - 1) instead
authorKenichi Handa <handa@m17n.org>
Mon, 27 Dec 1999 05:04:47 +0000 (05:04 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 27 Dec 1999 05:04:47 +0000 (05:04 +0000)
of GLYPH_MASK_CHAR.

src/charset.c

index 302f243ad5afb3cc995f29402f08a074e08d68ba..104756ded651efbb713d9d89697eff893f11c73f 100644 (file)
@@ -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);