Bounds check "x >> y".

This commit is contained in:
Nigel Tao committed 2017-06-02 10:57:56 +10:00
1 parent 51da37c661
commit 5a0aea66a3
4 files changed
+29

No files matched your search

+2
View File
@@ -29,6 +29,8 @@ pub func lzw_decoder.decode?(dst ptr io.buf1, src ptr io.buf1, src_final bool)()
bits |= 0 // TODO.
n_bits += 8
}
// TODO: var code u32[..4095] = bits.low_bits(width)
bits >>= width
// TODO: implement.
break