Tweak std/bzip2 decoder.flush_fast applicability

This commit is contained in:
Nigel Tao committed 2022-05-24 12:25:47 +10:00
1 parent 6a3e43f495
commit 09102fb1e8
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ pri func decoder.flush_fast!(dst: base.io_writer) {
block_checksum_have = this.block_checksum_have
block_size = this.block_size
while (block_size > 0) and (args.dst.length() > 255) {
while (block_size > 0) and (args.dst.length() >= 255) {
if flush_repeat_count < 4 {
entry = this.bwt[flush_pointer]
curr = (entry & 0xFF) as base.u8