diff options
author | jcid <devnull@localhost> | 2007-11-14 22:31:41 +0100 |
---|---|---|
committer | jcid <devnull@localhost> | 2007-11-14 22:31:41 +0100 |
commit | 1a09cec70152b4836a20cd8a0d914f62b290fae2 (patch) | |
tree | 471ccc7764ba5f9d7ce75e89c268555d92a91684 | |
parent | d56cac735b0548bbca874839094fc42774d66d96 (diff) |
Fixed signedness problems in decode.c
-rw-r--r-- | src/decode.c | 6 |
1 files changed, 3 insertions, 3 deletions
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(""); |