summaryrefslogtreecommitdiffstats
path: root/Modules/zlibmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-10-30 23:33:57 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2012-10-30 23:33:57 (GMT)
commit56cb12542d7ea5c95b9483e3db69388bcbc2ffbb (patch)
tree2c66f16414127cfe2dcd99e1a9af08eb83ee8de9 /Modules/zlibmodule.c
parent4ca1cf35fbf042700dfeaf7bf27d3d476eff32a6 (diff)
downloadcpython-56cb12542d7ea5c95b9483e3db69388bcbc2ffbb.zip
cpython-56cb12542d7ea5c95b9483e3db69388bcbc2ffbb.tar.gz
cpython-56cb12542d7ea5c95b9483e3db69388bcbc2ffbb.tar.bz2
Issue #9566: Explicit downcast to fix compiler warnings on Win64
Diffstat (limited to 'Modules/zlibmodule.c')
-rw-r--r--Modules/zlibmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c
index 6519194..a53a5f0 100644
--- a/Modules/zlibmodule.c
+++ b/Modules/zlibmodule.c
@@ -161,7 +161,7 @@ PyZlib_compress(PyObject *self, PyObject *args)
goto error;
}
input = pinput.buf;
- length = pinput.len;
+ length = (unsigned int)pinput.len;
zst.avail_out = length + length/1000 + 12 + 1;
@@ -251,7 +251,7 @@ PyZlib_decompress(PyObject *self, PyObject *args)
goto error;
}
input = pinput.buf;
- length = pinput.len;
+ length = (unsigned int)pinput.len;
if (r_strlen <= 0)
r_strlen = 1;