]> git.eshelyaron.com Git - emacs.git/commitdiff
(MAKE_CHAR): Be sure to set MSB of C1 to 0.
authorKenichi Handa <handa@m17n.org>
Thu, 7 Sep 2000 08:02:20 +0000 (08:02 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 7 Sep 2000 08:02:20 +0000 (08:02 +0000)
src/charset.h

index ad0f60ff48967c9e4b32094e1fb190b591a038f2..cdc7d9a0de312bec8346b9c80d2c25198bd12c28 100644 (file)
@@ -398,7 +398,7 @@ extern int width_by_char_head[256];
       : ((CHARSET_DEFINED_P (charset)                                      \
          ? CHARSET_DIMENSION (charset) == 1                                \
          : (charset) < MIN_CHARSET_PRIVATE_DIMENSION2)                     \
-        ? (((charset) - 0x70) << 7) | ((c1) <= 0 ? 0 : (c1))               \
+        ? (((charset) - 0x70) << 7) | ((c1) <= 0 ? 0 : ((c1) & 0x7F))      \
         : ((((charset)                                                     \
              - ((charset) < MIN_CHARSET_PRIVATE_DIMENSION2 ? 0x8F : 0xE0)) \
             << 14)                                                         \