aboutsummaryrefslogtreecommitdiff
path: root/deflate.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2024-02-09 16:44:15 -0800
committerMark Adler <madler@alumni.caltech.edu>2024-02-09 20:11:18 -0800
commit7a7202de3568522dfc75a455927ccbd7faf63411 (patch)
treeace9f2f7f4cb66b62071179a91bd93441cc4c41c /deflate.c
parent3c13497a61c192dd255c280e73b806ed27ba8a0a (diff)
downloadzlib-7a7202de3568522dfc75a455927ccbd7faf63411.tar.gz
zlib-7a7202de3568522dfc75a455927ccbd7faf63411.tar.bz2
zlib-7a7202de3568522dfc75a455927ccbd7faf63411.zip
Correct a variable type in deflate.c.
Diffstat (limited to 'deflate.c')
-rw-r--r--deflate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/deflate.c b/deflate.c
index 4b804e6..10f1695 100644
--- a/deflate.c
+++ b/deflate.c
@@ -1635,7 +1635,8 @@ local block_state deflate_stored(deflate_state *s, int flush) {
1635 * possible. If flushing, copy the remaining available input to next_out as 1635 * possible. If flushing, copy the remaining available input to next_out as
1636 * stored blocks, if there is enough space. 1636 * stored blocks, if there is enough space.
1637 */ 1637 */
1638 unsigned len, left, have, last = 0; 1638 int last = 0;
1639 unsigned len, left, have;
1639 unsigned used = s->strm->avail_in; 1640 unsigned used = s->strm->avail_in;
1640 do { 1641 do {
1641 /* Set len to the maximum size block that we can copy directly with the 1642 /* Set len to the maximum size block that we can copy directly with the