summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-11-09 04:31:38 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-11-09 04:31:38 (GMT)
commit39185d622dc9eb8abe13d34925631c65593a8246 (patch)
tree803ba2d86e497a34434f26a3abae96b09f5f4d84
parent2858e5e84b4b4463d4fd327088bf8b4f87bf743b (diff)
downloadcpython-39185d622dc9eb8abe13d34925631c65593a8246.zip
cpython-39185d622dc9eb8abe13d34925631c65593a8246.tar.gz
cpython-39185d622dc9eb8abe13d34925631c65593a8246.tar.bz2
BZ2Decomp_decompress(): Fixed more long vs LONG_LONG confusions.
-rw-r--r--Modules/bz2module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/bz2module.c b/Modules/bz2module.c
index d65e6dd..b4a22fb 100644
--- a/Modules/bz2module.c
+++ b/Modules/bz2module.c
@@ -1709,7 +1709,7 @@ BZ2Decomp_decompress(BZ2DecompObject *self, PyObject *args)
char *data;
int datasize;
int bufsize = SMALLCHUNK;
- long totalout;
+ LONG_LONG totalout;
PyObject *ret = NULL;
bz_stream *bzs = &self->bzs;
int bzerror;
@@ -1769,7 +1769,7 @@ BZ2Decomp_decompress(BZ2DecompObject *self, PyObject *args)
}
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;