diff options
Diffstat (limited to 'lib/unictype/bitmap.h')
-rw-r--r-- | lib/unictype/bitmap.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/unictype/bitmap.h b/lib/unictype/bitmap.h index cfa0acab33..8681966380 100644 --- a/lib/unictype/bitmap.h +++ b/lib/unictype/bitmap.h @@ -17,7 +17,8 @@ static inline int bitmap_lookup (const void *table, ucs4_t uc); -/* These values are currently hardcoded into gen-ctype.c. */ +/* These values are currently hardcoded into gen-uni-tables.c, function + output_predicate(). */ #define header_0 16 #define header_2 9 #define header_3 127 @@ -37,7 +38,7 @@ bitmap_lookup (const void *table, ucs4_t uc) if (lookup2 >= 0) { unsigned int index3 = (uc >> 5) & header_4; - unsigned int lookup3 = ((const int *) table)[lookup2 + index3]; + unsigned int lookup3 = ((const unsigned int *) table)[lookup2 + index3]; return (lookup3 >> (uc & 0x1f)) & 1; } |