summaryrefslogtreecommitdiffstats
path: root/Modules/zlibmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-05-07 21:50:21 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-05-07 21:50:21 (GMT)
commite8289618bf13b13449baca38c22dd72ea75b8310 (patch)
tree812f31199ca156b8808aa8b853416b588b60a027 /Modules/zlibmodule.c
parent22c103b3cc057ed6f059045a12cff243b01f20fe (diff)
downloadcpython-e8289618bf13b13449baca38c22dd72ea75b8310.zip
cpython-e8289618bf13b13449baca38c22dd72ea75b8310.tar.gz
cpython-e8289618bf13b13449baca38c22dd72ea75b8310.tar.bz2
zlib: Explicit cast to fix a compiler warning
Diffstat (limited to 'Modules/zlibmodule.c')
-rw-r--r--Modules/zlibmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c
index 4b39aae..b40e081 100644
--- a/Modules/zlibmodule.c
+++ b/Modules/zlibmodule.c
@@ -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 new_size;
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();
return -1;
}