]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
add explicit cast when storing want in state->size
authordxbjavid <dxbjavid@gmail.com>
Sun, 14 Jun 2026 04:34:38 +0000 (10:04 +0530)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sat, 4 Jul 2026 12:40:06 +0000 (14:40 +0200)
gzlib.c

diff --git a/gzlib.c b/gzlib.c
index 7b7edbe454b430d05426b09bb96bca16326e3635..b0c921740062f0f4e9ded15366be52ec5d1bb0a0 100644 (file)
--- a/gzlib.c
+++ b/gzlib.c
@@ -106,7 +106,7 @@ int Z_INTERNAL gz_buffer_alloc(gz_state *state) {
         return -1;
     }
 
-    state->size = want; // mark state as initialized
+    state->size = (unsigned)want; // mark state as initialized
     return 0;
 }