aboutsummaryrefslogtreecommitdiff
path: root/deflate.c
diff options
context:
space:
mode:
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