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
@@ -25966,7 +25966,7 @@ wuffs_bzip2__decoder__flush_fast(
v_flush_prev = self->private_impl.f_flush_prev;
v_block_checksum_have = self->private_impl.f_block_checksum_have;
v_block_size = self->private_impl.f_block_size;
while ((v_block_size > 0) && (((uint64_t)(io2_a_dst - iop_a_dst)) > 255)) {
while ((v_block_size > 0) && (((uint64_t)(io2_a_dst - iop_a_dst)) >= 255)) {
if (v_flush_repeat_count < 4) {
v_entry = self->private_data.f_bwt[v_flush_pointer];
v_curr = ((uint8_t)((v_entry & 255)));
+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