update xxh3 to 0.8.0, fix is_ascii

This commit is contained in:
van Hauser
2020-09-03 09:59:23 +02:00
parent 020b8a4964
commit 4c48d3a3ad
5 changed files with 3461 additions and 3502 deletions

View File

@ -138,9 +138,9 @@ static u8 check_if_text(struct queue_entry *q) {
}
// non-overlong 2-byte
if (((0xC2 <= buf[offset + 0] && buf[offset + 0] <= 0xDF) &&
(0x80 <= buf[offset + 1] && buf[offset + 1] <= 0xBF)) &&
len - offset > 1) {
if (len - offset > 1 &&
((0xC2 <= buf[offset + 0] && buf[offset + 0] <= 0xDF) &&
(0x80 <= buf[offset + 1] && buf[offset + 1] <= 0xBF))) {
offset += 2;
utf8++;