mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 22:22:17 +00:00
Wrong operand order it's 0xf4u-0xc2u i.e 0x32.
This commit is contained in:
parent
f83cc1b91d
commit
3e362e872c
1 changed files with 1 additions and 1 deletions
2
utf8.c
2
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];
|
||||
|
|
Loading…
Reference in a new issue