]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bz2_compress/bz2_decompress: more casting away LONG_LONG for
authorTim Peters <tim.peters@gmail.com>
Sat, 9 Nov 2002 04:33:36 +0000 (04:33 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 9 Nov 2002 04:33:36 +0000 (04:33 +0000)
_PyString_Resize calls.

Modules/bz2module.c

index b4a22fbbee208df558f784cfb890892a6514cc6d..ffd17431f8445e5a496c569551bbbb55fafc79cc 100644 (file)
@@ -1978,7 +1978,7 @@ bz2_compress(PyObject *self, PyObject *args, PyObject *kwargs)
        }
 
        if (bzs->avail_out != 0)
-               _PyString_Resize(&ret, BZS_TOTAL_OUT(bzs));
+               _PyString_Resize(&ret, (int)BZS_TOTAL_OUT(bzs));
        BZ2_bzCompressEnd(bzs);
 
        return ret;
@@ -2057,7 +2057,7 @@ bz2_decompress(PyObject *self, PyObject *args)
        }
 
        if (bzs->avail_out != 0)
-               _PyString_Resize(&ret, BZS_TOTAL_OUT(bzs));
+               _PyString_Resize(&ret, (int)BZS_TOTAL_OUT(bzs));
        BZ2_bzDecompressEnd(bzs);
 
        return ret;