mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix a constant in the UTF-8 decoder
(I can't read. Constant is described in https://encoding.spec.whatwg.org/#utf-8-decoder step 3 second case.)
This commit is contained in:
parent
48ecf3d5a1
commit
41a9760d79
|
@ -2369,7 +2369,7 @@ int str_utf8_decode(const char **ptr)
|
|||
{
|
||||
return byte;
|
||||
}
|
||||
else if(0x80 <= byte && byte <= 0xDF)
|
||||
else if(0xC2 <= byte && byte <= 0xDF)
|
||||
{
|
||||
utf8_bytes_needed = 1;
|
||||
utf8_code_point = byte - 0xC0;
|
||||
|
|
Loading…
Reference in a new issue