Use "x < y" when bounds checking "x - y".

This commit is contained in:
Nigel Tao committed 2017-06-02 11:39:51 +10:00
1 parent 747247a557
commit 80a39bfccb
3 files changed
+28 -4

No files matched your search

+1
View File
@@ -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