From: Tim Peters Date: Sat, 9 Nov 2002 04:33:36 +0000 (+0000) Subject: bz2_compress/bz2_decompress: more casting away LONG_LONG for X-Git-Tag: v2.3c1~3504 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6ee6db81c2a1834f6cce864e0c84e1a166b15e95;p=thirdparty%2FPython%2Fcpython.git bz2_compress/bz2_decompress: more casting away LONG_LONG for _PyString_Resize calls. --- diff --git a/Modules/bz2module.c b/Modules/bz2module.c index b4a22fbbee20..ffd17431f844 100644 --- a/Modules/bz2module.c +++ b/Modules/bz2module.c @@ -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;