mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 00:47:28 +01:00
Use "x < y" when bounds checking "x - y".
This commit is contained in:
1 parent
747247a557
commit
80a39bfccb
3 files changed
+28
-4
No files matched your search
@@ -31,6 +31,7 @@ pub func lzw_decoder.decode?(dst ptr io.buf1, src ptr io.buf1, src_final bool)()
|
||||
}
|
||||
// TODO: var code u32[..4095] = bits.low_bits(width)
|
||||
bits >>= width
|
||||
n_bits -= width
|
||||
|
||||
// TODO: implement.
|
||||
break
|
||||
|
||||
Reference in new issue
Block a user