mirror of https://github.com/python/cpython.git
zlib: Explicit cast to fix a compiler warning
This commit is contained in:
parent
22c103b3cc
commit
e8289618bf
|
@ -573,7 +573,7 @@ save_unconsumed_input(compobject *self, int err)
|
||||||
Py_ssize_t old_size = PyBytes_GET_SIZE(self->unused_data);
|
Py_ssize_t old_size = PyBytes_GET_SIZE(self->unused_data);
|
||||||
Py_ssize_t new_size;
|
Py_ssize_t new_size;
|
||||||
PyObject *new_data;
|
PyObject *new_data;
|
||||||
if (self->zst.avail_in > PY_SSIZE_T_MAX - old_size) {
|
if ((Py_ssize_t)self->zst.avail_in > PY_SSIZE_T_MAX - old_size) {
|
||||||
PyErr_NoMemory();
|
PyErr_NoMemory();
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue