changeset 49:63610ed24f7b

Fixed signedness problems in decode.c
author jcid
date Wed, 14 Nov 2007 22:31:41 +0100
parents 224c9f547b39
children 22a3dedcb1a0
files src/decode.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/decode.c	Wed Nov 14 22:27:26 2007 +0100
+++ b/src/decode.c	Wed Nov 14 22:31:41 2007 +0100
@@ -32,10 +32,10 @@
    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 @@
 
    Dstr *input, *output;
    char *inPtr, *outPtr;
-   int inLeft, outRoom;
+   size_t inLeft, outRoom;
 
    output = dStr_new("");