mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 08:47:28 +01:00
Type and bounds check "x | y | z".
This commit is contained in:
1 parent
eee67e083d
commit
e1be6d9582
6 files changed
+75
-33
No files matched your search
@@ -501,8 +501,7 @@ pri func decoder.init_huff?(which u32[..1], n_codes u32[..289])() {
|
||||
reversed_code >>= 9 - cl
|
||||
|
||||
// TODO: don't assume that the value is a literal.
|
||||
var value u32 = ((this.symbols[i] as u32) << 8) | cl
|
||||
value |= 0x40000000
|
||||
var value u32 = 0x40000000 | ((this.symbols[i] as u32) << 8) | cl
|
||||
|
||||
// The table uses max_cl bits, but reversed_code only has cl bits. We
|
||||
// duplicate the key-value pair across all possible values of the high
|
||||
|
||||
Reference in new issue
Block a user