mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
zlib: Explicit cast to fix a compiler warning
This commit is contained in:
parent
22c103b3cc
commit
e8289618bf
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue