From 1a09cec70152b4836a20cd8a0d914f62b290fae2 Mon Sep 17 00:00:00 2001 From: jcid Date: Wed, 14 Nov 2007 22:31:41 +0100 Subject: Fixed signedness problems in decode.c --- src/decode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/decode.c b/src/decode.c index 6bb6acd8..7ae9bfa4 100644 --- a/src/decode.c +++ b/src/decode.c @@ -32,10 +32,10 @@ static Dstr *Decode_gzip(Decode *dc, const char *inData, int inLen) Dstr *output = dStr_new(""); while ((rc == Z_OK) && (inputConsumed < inLen)) { - zs->next_in = (char *)inData + inputConsumed; + zs->next_in = (Bytef *)inData + inputConsumed; zs->avail_in = inLen - inputConsumed; - zs->next_out = dc->buffer; + zs->next_out = (Bytef *)dc->buffer; zs->avail_out = bufsize; rc = inflate(zs, Z_SYNC_FLUSH); @@ -69,7 +69,7 @@ static Dstr *Decode_charset(Decode *dc, const char *inData, int inLen) Dstr *input, *output; char *inPtr, *outPtr; - int inLeft, outRoom; + size_t inLeft, outRoom; output = dStr_new(""); -- cgit v1.2.3