wstr: Ascii character detection in the UTF-8 decoder should use `<`, not `<=`
This commit is contained in:
parent
ae5e2be8a3
commit
026fcfff62
|
@ -151,7 +151,7 @@ impl<'a> Iterator for DecodeAvmUtf8<'a> {
|
|||
ch <<= 6;
|
||||
ch |= (*b & (u8::MAX >> 2)) as u32;
|
||||
}
|
||||
if ch <= 128 {
|
||||
if ch < 0x80 {
|
||||
Some(first as u32)
|
||||
} else {
|
||||
self.index += mb_count as usize;
|
||||
|
|
Loading…
Reference in New Issue