summaryrefslogtreecommitdiffstats
path: root/compat/zlib/gzread.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat/zlib/gzread.c')
-rw-r--r--compat/zlib/gzread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/compat/zlib/gzread.c b/compat/zlib/gzread.c
index 434ef02..548201a 100644
--- a/compat/zlib/gzread.c
+++ b/compat/zlib/gzread.c
@@ -55,7 +55,8 @@ local int gz_avail(state)
if (state->err != Z_OK)
return -1;
if (state->eof == 0) {
- if (gz_load(state, state->in, state->size, &(strm->avail_in)) == -1)
+ if (gz_load(state, state->in, state->size,
+ (unsigned *)&(strm->avail_in)) == -1)
return -1;
strm->next_in = state->in;
}