]> git.lizzy.rs Git - zlib.git/blobdiff - gzwrite.c
Avoid some random compiler warnings on various platforms.
[zlib.git] / gzwrite.c
index 24205140af2294853492a0f5d24923a3aca9e471..c29308b75f0d5342672b3a999fb848cea09263dd 100644 (file)
--- a/gzwrite.c
+++ b/gzwrite.c
@@ -225,7 +225,7 @@ local z_size_t gz_write(state, buf, len)
         /* directly compress user buffer to file */
         state->strm.next_in = (z_const Bytef *)buf;
         do {
-            unsigned n = -1;
+            unsigned n = (unsigned)-1;
             if (n > len)
                 n = len;
             state->strm.avail_in = n;