]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fdefine_charset_internal): Setup charset.fast_map correctly.
authorKenichi Handa <handa@m17n.org>
Thu, 5 Dec 2002 04:25:02 +0000 (04:25 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 5 Dec 2002 04:25:02 +0000 (04:25 +0000)
src/charset.c

index 05dc94acb0e667dee45bcebe34fe6c72eb4be074..60ea42c2a941a3d7b3a7f0b7c76a24b5b527226e 100644 (file)
@@ -900,9 +900,10 @@ usage: (define-charset-internal ...)  */)
       if (charset.max_char > MAX_CHAR)
        error ("Unsupported max char: %d", charset.max_char);
 
-      for (i = charset.min_char; i < 0x10000 && i <= charset.max_char;
-          i += 128)
+      i = (charset.min_char >> 7) << 7;
+      for (; i < 0x10000 && i <= charset.max_char; i += 128)
        CHARSET_FAST_MAP_SET (i, charset.fast_map);
+      i = (i >> 12) << 12;
       for (; i <= charset.max_char; i += 0x1000)
        CHARSET_FAST_MAP_SET (i, charset.fast_map);
     }