From e8289618bf13b13449baca38c22dd72ea75b8310 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 7 May 2013 23:50:21 +0200 Subject: zlib: Explicit cast to fix a compiler warning --- Modules/zlibmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v0.12