aboutsummaryrefslogtreecommitdiff
path: root/gzwrite.c
diff options
context:
space:
mode:
Diffstat (limited to 'gzwrite.c')
-rw-r--r--gzwrite.c4
1 files changed, 2 insertions, 2 deletions
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)
209 state->in); 209 state->in);
210 copy = state->size - have; 210 copy = state->size - have;
211 if (copy > len) 211 if (copy > len)
212 copy = len; 212 copy = (unsigned)len;
213 memcpy(state->in + have, buf, copy); 213 memcpy(state->in + have, buf, copy);
214 state->strm.avail_in += copy; 214 state->strm.avail_in += copy;
215 state->x.pos += copy; 215 state->x.pos += copy;
@@ -229,7 +229,7 @@ local z_size_t gz_write(state, buf, len)
229 do { 229 do {
230 unsigned n = (unsigned)-1; 230 unsigned n = (unsigned)-1;
231 if (n > len) 231 if (n > len)
232 n = len; 232 n = (unsigned)len;
233 state->strm.avail_in = n; 233 state->strm.avail_in = n;
234 state->x.pos += n; 234 state->x.pos += n;
235 if (gz_comp(state, Z_NO_FLUSH) == -1) 235 if (gz_comp(state, Z_NO_FLUSH) == -1)