Wrong operand order it's 0xf4u-0xc2u i.e 0x32.

This commit is contained in:
Dale Weiler 2013-10-10 22:03:13 -04:00
parent f83cc1b91d
commit 3e362e872c

2
utf8.c
View file

@ -126,7 +126,7 @@ int utf8_to(utf8ch_t *i, const unsigned char *s, size_t n) {
if (*s < 0x80)
return !!(*i = *s);
if (*s-0xC2U > 0xFFFFFFCE)
if (*s-0xC2U > 0x32)
return 0;
c = utf8_tab[*s++-0xC2U];