From: Fabian Keil Date: Wed, 19 Aug 2009 15:25:31 +0000 (+0000) Subject: Fix gcc45 warnings in decompress_iob(). X-Git-Tag: v_3_0_15~100 X-Git-Url: http://www.privoxy.org/gitweb/?a=commitdiff_plain;h=9dd3d34ce2e90a11c24e58b592a519bdd414a651;p=privoxy.git Fix gcc45 warnings in decompress_iob(). --- diff --git a/parsers.c b/parsers.c index debda5bb..b370aa64 100644 --- a/parsers.c +++ b/parsers.c @@ -1,4 +1,4 @@ -const char parsers_rcs[] = "$Id: parsers.c,v 1.202 2009/07/19 11:48:32 fabiankeil Exp $"; +const char parsers_rcs[] = "$Id: parsers.c,v 1.203 2009/08/01 11:46:59 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/parsers.c,v $ @@ -586,7 +586,7 @@ jb_err decompress_iob(struct client_state *csp) assert(bufsize >= skip_size); memcpy(buf, csp->iob->buf, skip_size); - zstr.avail_out = bufsize - skip_size; + zstr.avail_out = (uInt)(bufsize - skip_size); zstr.next_out = (Bytef *)buf + skip_size; /* Try to decompress the whole stream in one shot. */ @@ -644,7 +644,7 @@ jb_err decompress_iob(struct client_state *csp) * buffer, which may be in a location different from * the old one. */ - zstr.avail_out += bufsize - oldbufsize; + zstr.avail_out += (uInt)(bufsize - oldbufsize); zstr.next_out = (Bytef *)tmpbuf + bufsize - zstr.avail_out; /*