]> granicus.if.org Git - python/commitdiff
BZ2Comp_flush(): Fixed more int vs LONG_LONG confusions.
authorTim Peters <tim.peters@gmail.com>
Sat, 9 Nov 2002 04:30:08 +0000 (04:30 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 9 Nov 2002 04:30:08 +0000 (04:30 +0000)
Modules/bz2module.c

index c45de1d1145d9a8c8775c8995ebbb7b85dedbc25..d65e6ddf83290d93271802408117d04340e8397f 100644 (file)
@@ -1504,7 +1504,7 @@ BZ2Comp_flush(BZ2CompObject *self)
        int bufsize = SMALLCHUNK;
        PyObject *ret = NULL;
        bz_stream *bzs = &self->bzs;
-       int totalout;
+       LONG_LONG totalout;
        int bzerror;
 
        ACQUIRE_LOCK(self);
@@ -1546,7 +1546,7 @@ BZ2Comp_flush(BZ2CompObject *self)
        }
 
        if (bzs->avail_out != 0)
-               _PyString_Resize(&ret, BZS_TOTAL_OUT(bzs) - totalout);
+               _PyString_Resize(&ret, (int)(BZS_TOTAL_OUT(bzs) - totalout));
 
        RELEASE_LOCK(self);
        return ret;