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

index d65e6ddf83290d93271802408117d04340e8397f..b4a22fbbee208df558f784cfb890892a6514cc6d 100644 (file)
@@ -1709,7 +1709,7 @@ BZ2Decomp_decompress(BZ2DecompObject *self, PyObject *args)
        char *data;
        int datasize;
        int bufsize = SMALLCHUNK;
-       long totalout;
+       LONG_LONG totalout;
        PyObject *ret = NULL;
        bz_stream *bzs = &self->bzs;
        int bzerror;
@@ -1769,7 +1769,7 @@ BZ2Decomp_decompress(BZ2DecompObject *self, PyObject *args)
        }
 
        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;