BZ2Comp_flush(): Fixed more int vs LONG_LONG confusions.
diff --git a/Modules/bz2module.c b/Modules/bz2module.c
index c45de1d..d65e6dd 100644
--- a/Modules/bz2module.c
+++ b/Modules/bz2module.c
@@ -1504,7 +1504,7 @@
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 @@
}
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;