Issue #9566: Explicit downcast to fix compiler warnings on Win64

This commit is contained in:
Victor Stinner 2012-10-31 00:33:57 +01:00
parent 4ca1cf35fb
commit 56cb12542d
4 changed files with 8 additions and 6 deletions

View file

@ -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;