diff options
| author | Mark Adler <madler@alumni.caltech.edu> | 2024-07-05 23:02:36 -0500 |
|---|---|---|
| committer | Mark Adler <madler@alumni.caltech.edu> | 2024-07-05 23:04:59 -0500 |
| commit | 3adaa095a7a6c3f2cc00f73311f9bc8688c21aa7 (patch) | |
| tree | 20e162929ee16b6c02db18986da8cef9049fca3b | |
| parent | 884e0c0809e4cc5e88d6545d1c49de7946c1b1ca (diff) | |
| download | zlib-3adaa095a7a6c3f2cc00f73311f9bc8688c21aa7.tar.gz zlib-3adaa095a7a6c3f2cc00f73311f9bc8688c21aa7.tar.bz2 zlib-3adaa095a7a6c3f2cc00f73311f9bc8688c21aa7.zip | |
One more correction for deflateUsed() bits in stored case.
| -rw-r--r-- | deflate.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -1809,6 +1809,8 @@ local block_state deflate_stored(deflate_state *s, int flush) { | |||
| 1809 | } | 1809 | } |
| 1810 | 1810 | ||
| 1811 | /* We've done all we can with the available input and output. */ | 1811 | /* We've done all we can with the available input and output. */ |
| 1812 | if (last) | ||
| 1813 | s->bi_used = 8; | ||
| 1812 | return last ? finish_started : need_more; | 1814 | return last ? finish_started : need_more; |
| 1813 | } | 1815 | } |
| 1814 | 1816 | ||
