aboutsummaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utf8.c b/utf8.c
index 56a036b..ffee89d 100644
--- a/utf8.c
+++ b/utf8.c
@@ -199,7 +199,7 @@ static int utf8_map_case(const struct casemap *mapping, int num, int ch)
static int cmp_range(const void *key, const void *cm)
{
const struct utf8range *range = (const struct utf8range *)cm;
- int ch = *(int *)key;
+ unsigned ch = *(unsigned *)key;
if (ch < range->lower) {
return -1;
}