From: Tim Peters Date: Sat, 9 Nov 2002 04:28:17 +0000 (+0000) Subject: BZ2Comp_compress(): Explicitly cast the LONG_LONG size argument to X-Git-Tag: v2.3c1~3507 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f29f0c6a785e0535110afdbdcbe985e6bfc838c1;p=python BZ2Comp_compress(): Explicitly cast the LONG_LONG size argument to _PyString_Resize to int. --- diff --git a/Modules/bz2module.c b/Modules/bz2module.c index 45bffb1621..c45de1d114 100644 --- a/Modules/bz2module.c +++ b/Modules/bz2module.c @@ -1480,7 +1480,7 @@ BZ2Comp_compress(BZ2CompObject *self, PyObject *args) } } - _PyString_Resize(&ret, BZS_TOTAL_OUT(bzs) - totalout); + _PyString_Resize(&ret, (int)(BZS_TOTAL_OUT(bzs) - totalout)); RELEASE_LOCK(self); return ret;