From f29f0c6a785e0535110afdbdcbe985e6bfc838c1 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sat, 9 Nov 2002 04:28:17 +0000 Subject: [PATCH] BZ2Comp_compress(): Explicitly cast the LONG_LONG size argument to _PyString_Resize to int. --- Modules/bz2module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.49.0