summaryrefslogtreecommitdiffstats
path: root/Modules/bz2module.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-11-09 04:30:08 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-11-09 04:30:08 (GMT)
commit2858e5e84b4b4463d4fd327088bf8b4f87bf743b (patch)
tree673d7aab20137824fbbd903086e32ac65482be08 /Modules/bz2module.c
parentf29f0c6a785e0535110afdbdcbe985e6bfc838c1 (diff)
downloadcpython-2858e5e84b4b4463d4fd327088bf8b4f87bf743b.zip
cpython-2858e5e84b4b4463d4fd327088bf8b4f87bf743b.tar.gz
cpython-2858e5e84b4b4463d4fd327088bf8b4f87bf743b.tar.bz2
BZ2Comp_flush(): Fixed more int vs LONG_LONG confusions.
Diffstat (limited to 'Modules/bz2module.c')
-rw-r--r--Modules/bz2module.c4
1 files changed, 2 insertions, 2 deletions
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 @@ 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;