]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Correct a variable type in deflate_stored.
authorMark Adler <madler@alumni.caltech.edu>
Sat, 4 Apr 2026 02:30:15 +0000 (19:30 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Wed, 29 Jul 2026 09:42:17 +0000 (11:42 +0200)
Upstream: https://github.com/madler/zlib/commit/7a7202de

deflate_stored.c

index 481375bb9a0ccd50f3292369c4c3d1bb9e55d38f..be49094312908b8850e469fbe46bc56273b979d3 100644 (file)
@@ -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