X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=infback.c;h=59679ecbfc5d778ca85d9ced87565f69bcb4635c;hb=38e8ce32afbaa82f67d992b9f3056f281fe69259;hp=c0264854399cab24847f80b045d8ec68a21262fb;hpb=de32a2d74948e13e4d8ec17263a31e2c3ae900b1;p=zlib.git diff --git a/infback.c b/infback.c index c026485..59679ec 100644 --- a/infback.c +++ b/infback.c @@ -1,5 +1,5 @@ /* infback.c -- inflate using a call-back interface - * Copyright (C) 1995-2009 Mark Adler + * Copyright (C) 1995-2016 Mark Adler * For conditions of distribution and use, see copyright notice in zlib.h */ @@ -61,7 +61,7 @@ int stream_size; Tracev((stderr, "inflate: allocated\n")); strm->state = (struct internal_state FAR *)state; state->dmax = 32768U; - state->wbits = windowBits; + state->wbits = (uInt)windowBits; state->wsize = 1U << windowBits; state->window = window; state->wnext = 0; @@ -255,7 +255,7 @@ out_func out; void FAR *out_desc; { struct inflate_state FAR *state; - unsigned char FAR *next; /* next input */ + z_const unsigned char FAR *next; /* next input */ unsigned char FAR *put; /* next output */ unsigned have, left; /* available input and output */ unsigned long hold; /* bit buffer */