From: Mark Adler Date: Sat, 4 Apr 2026 02:30:15 +0000 (-0700) Subject: Correct a variable type in deflate_stored. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee66508fd31744900faff2a845b14e94850a321d;p=thirdparty%2Fzlib-ng.git Correct a variable type in deflate_stored. Upstream: https://github.com/madler/zlib/commit/7a7202de --- diff --git a/deflate_stored.c b/deflate_stored.c index 481375bb9..be4909431 100644 --- a/deflate_stored.c +++ b/deflate_stored.c @@ -30,7 +30,8 @@ Z_INTERNAL block_state deflate_stored(deflate_state *s, int flush) { * possible. If flushing, copy the remaining available input to next_out as * stored blocks, if there is enough space. */ - unsigned len, left, have, last = 0; + int last = 0; + unsigned len, left, have; unsigned used = s->strm->avail_in; do { /* Set len to the maximum size block that we can copy directly with the