From 793ad7f559555757e6443ea591ce70de5505fc69 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Sat, 11 Feb 2017 22:45:27 -0800 Subject: Avoid some conversion warnings in gzread.c and gzwrite.c. --- gzwrite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gzwrite.c') diff --git a/gzwrite.c b/gzwrite.c index c7b5651..35b9aa6 100644 --- a/gzwrite.c +++ b/gzwrite.c @@ -209,7 +209,7 @@ local z_size_t gz_write(state, buf, len) state->in); copy = state->size - have; if (copy > len) - copy = len; + copy = (unsigned)len; memcpy(state->in + have, buf, copy); state->strm.avail_in += copy; state->x.pos += copy; @@ -229,7 +229,7 @@ local z_size_t gz_write(state, buf, len) do { unsigned n = (unsigned)-1; if (n > len) - n = len; + n = (unsigned)len; state->strm.avail_in = n; state->x.pos += n; if (gz_comp(state, Z_NO_FLUSH) == -1) -- cgit v1.2.3-55-g6feb