mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Issue #9566: Explicit downcast to fix compiler warnings on Win64
This commit is contained in:
parent
4ca1cf35fb
commit
56cb12542d
4 changed files with 8 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue