summaryrefslogtreecommitdiffstats
path: root/Modules/bz2module.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-11-09 04:28:17 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-11-09 04:28:17 (GMT)
commitf29f0c6a785e0535110afdbdcbe985e6bfc838c1 (patch)
treeebfd70c468308cd12b86b0887cfeeed28f5897da /Modules/bz2module.c
parent07f075cebb73a96f04ce8747c3b4588571494189 (diff)
downloadcpython-f29f0c6a785e0535110afdbdcbe985e6bfc838c1.zip
cpython-f29f0c6a785e0535110afdbdcbe985e6bfc838c1.tar.gz
cpython-f29f0c6a785e0535110afdbdcbe985e6bfc838c1.tar.bz2
BZ2Comp_compress(): Explicitly cast the LONG_LONG size argument to
_PyString_Resize to int.
Diffstat (limited to 'Modules/bz2module.c')
-rw-r--r--Modules/bz2module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/bz2module.c b/Modules/bz2module.c
index 45bffb1..c45de1d 100644
--- a/Modules/bz2module.c
+++ b/Modules/bz2module.c
@@ -1480,7 +1480,7 @@ BZ2Comp_compress(BZ2CompObject *self, PyObject *args)
}
}
- _PyString_Resize(&ret, BZS_TOTAL_OUT(bzs) - totalout);
+ _PyString_Resize(&ret, (int)(BZS_TOTAL_OUT(bzs) - totalout));
RELEASE_LOCK(self);
return ret;