summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-11-09 04:33:36 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-11-09 04:33:36 (GMT)
commit6ee6db81c2a1834f6cce864e0c84e1a166b15e95 (patch)
treed65fe6447fd8c8d2bb250a8ca0851080e949e65b /Modules
parent39185d622dc9eb8abe13d34925631c65593a8246 (diff)
downloadcpython-6ee6db81c2a1834f6cce864e0c84e1a166b15e95.zip
cpython-6ee6db81c2a1834f6cce864e0c84e1a166b15e95.tar.gz
cpython-6ee6db81c2a1834f6cce864e0c84e1a166b15e95.tar.bz2
bz2_compress/bz2_decompress: more casting away LONG_LONG for
_PyString_Resize calls.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/bz2module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/bz2module.c b/Modules/bz2module.c
index b4a22fb..ffd1743 100644
--- a/Modules/bz2module.c
+++ b/Modules/bz2module.c
@@ -1978,7 +1978,7 @@ bz2_compress(PyObject *self, PyObject *args, PyObject *kwargs)
}
if (bzs->avail_out != 0)
- _PyString_Resize(&ret, BZS_TOTAL_OUT(bzs));
+ _PyString_Resize(&ret, (int)BZS_TOTAL_OUT(bzs));
BZ2_bzCompressEnd(bzs);
return ret;
@@ -2057,7 +2057,7 @@ bz2_decompress(PyObject *self, PyObject *args)
}
if (bzs->avail_out != 0)
- _PyString_Resize(&ret, BZS_TOTAL_OUT(bzs));
+ _PyString_Resize(&ret, (int)BZS_TOTAL_OUT(bzs));
BZ2_bzDecompressEnd(bzs);
return ret;