diff options
Diffstat (limited to 'gzwrite.c')
-rw-r--r-- | gzwrite.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |