aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/charset.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/charset.c b/src/charset.c
index 05dc94acb0e..60ea42c2a94 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -900,9 +900,10 @@ usage: (define-charset-internal ...) */)
900 if (charset.max_char > MAX_CHAR) 900 if (charset.max_char > MAX_CHAR)
901 error ("Unsupported max char: %d", charset.max_char); 901 error ("Unsupported max char: %d", charset.max_char);
902 902
903 for (i = charset.min_char; i < 0x10000 && i <= charset.max_char; 903 i = (charset.min_char >> 7) << 7;
904 i += 128) 904 for (; i < 0x10000 && i <= charset.max_char; i += 128)
905 CHARSET_FAST_MAP_SET (i, charset.fast_map); 905 CHARSET_FAST_MAP_SET (i, charset.fast_map);
906 i = (i >> 12) << 12;
906 for (; i <= charset.max_char; i += 0x1000) 907 for (; i <= charset.max_char; i += 0x1000)
907 CHARSET_FAST_MAP_SET (i, charset.fast_map); 908 CHARSET_FAST_MAP_SET (i, charset.fast_map);
908 } 909 }