Skip to content

Commit

Permalink
One more correction for deflateUsed() bits in stored case.
Browse files Browse the repository at this point in the history
  • Loading branch information
madler committed Jul 6, 2024
1 parent 884e0c0 commit 3adaa09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deflate.c
Original file line number Diff line number Diff line change
Expand Up @@ -1809,6 +1809,8 @@ local block_state deflate_stored(deflate_state *s, int flush) {
}

/* We've done all we can with the available input and output. */
if (last)
s->bi_used = 8;
return last ? finish_started : need_more;
}

Expand Down

0 comments on commit 3adaa09

Please sign in to comment.