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:
heinrich5991 2015-09-08 11:44:14 +01:00
parent 48ecf3d5a1
commit 41a9760d79

View file

@ -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;