From 07129d9eaf88a5b619fec5e44ef7d81cbcf99a01 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Mon, 27 Dec 1999 05:04:23 +0000 Subject: [PATCH] (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead of GLYPH_MASK_CHAR. --- src/charset.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/charset.h b/src/charset.h index c0b7e4d9eb4..6b2e25b89dd 100644 --- a/src/charset.h +++ b/src/charset.h @@ -489,8 +489,9 @@ extern int iso_charset_table[2][2][128]; #define BASE_LEADING_CODE_P(c) (BYTES_BY_CHAR_HEAD ((unsigned char) (c)) > 1) /* 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)) +#define 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 -- 2.39.5