Bounds check "x | y".

This commit is contained in:
Nigel Tao committed 2017-05-28 15:28:05 +10:00
1 parent ca78c343cb
commit 509e6b48a4
3 files changed
+84 -3

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ pub func lzw_decoder.decode?(dst ptr io.buf1, src ptr io.buf1, src_final bool)()
post n_bits >= width,
{
assert n_bits < 12 via "a < b: a < c <= b"(c:width)
// TODO.
bits |= 0 // TODO.
n_bits += 8
}
}