From 2858e5e84b4b4463d4fd327088bf8b4f87bf743b Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sat, 9 Nov 2002 04:30:08 +0000 Subject: [PATCH] BZ2Comp_flush(): Fixed more int vs LONG_LONG confusions. --- Modules/bz2module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/bz2module.c b/Modules/bz2module.c index c45de1d114..d65e6ddf83 100644 --- a/Modules/bz2module.c +++ b/Modules/bz2module.c @@ -1504,7 +1504,7 @@ BZ2Comp_flush(BZ2CompObject *self) int bufsize = SMALLCHUNK; PyObject *ret = NULL; bz_stream *bzs = &self->bzs; - int totalout; + LONG_LONG totalout; int bzerror; ACQUIRE_LOCK(self); @@ -1546,7 +1546,7 @@ BZ2Comp_flush(BZ2CompObject *self) } if (bzs->avail_out != 0) - _PyString_Resize(&ret, BZS_TOTAL_OUT(bzs) - totalout); + _PyString_Resize(&ret, (int)(BZS_TOTAL_OUT(bzs) - totalout)); RELEASE_LOCK(self); return ret; -- 2.40.0