From 6ee6db81c2a1834f6cce864e0c84e1a166b15e95 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sat, 9 Nov 2002 04:33:36 +0000 Subject: bz2_compress/bz2_decompress: more casting away LONG_LONG for _PyString_Resize calls. --- Modules/bz2module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/bz2module.c b/Modules/bz2module.c index b4a22fb..ffd1743 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; -- cgit v0.12