From: Dale Weiler Date: Fri, 11 Oct 2013 02:03:13 +0000 (-0400) Subject: Wrong operand order it's 0xf4u-0xc2u i.e 0x32. X-Git-Tag: 0.3.5~43 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3e362e872c0596ff3e058c791a416ac7f8ae4c67;p=xonotic%2Fgmqcc.git Wrong operand order it's 0xf4u-0xc2u i.e 0x32. --- diff --git a/utf8.c b/utf8.c index 4396157..6089df1 100644 --- a/utf8.c +++ b/utf8.c @@ -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];