mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 00:47:28 +01:00
std/brotli: fix the UTF-8 prefix LUT; extend the encoder parity test to qualities 2 to 9
This commit is contained in:
3 files changed
+312
-92
No files matched your search
@@ -692,8 +692,6 @@ pri func encoder.utf8_prefix_lut(b: base.u8) base.u32[..= 2] {
|
||||
if args.b < 0x80 {
|
||||
return 0
|
||||
} else if args.b < 0xC0 {
|
||||
return 0
|
||||
} else if args.b < 0xE0 {
|
||||
return 1
|
||||
}
|
||||
return 2
|
||||
|
||||
Reference in new issue
Block a user