From c3583b292ac038a8d5867e3ded1dc25c64800d74 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 15 May 2009 23:05:29 +0000 Subject: [PATCH] Silence a compiler warning. --- Modules/_io/fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c index 555dc12c69..d3a1cfb6e2 100644 --- a/Modules/_io/fileio.c +++ b/Modules/_io/fileio.c @@ -547,7 +547,7 @@ fileio_readall(PyFileIOObject *self) return NULL; } - if (PyBytes_GET_SIZE(result) < newsize) { + if (PyBytes_GET_SIZE(result) < (Py_ssize_t)newsize) { if (_PyBytes_Resize(&result, newsize) < 0) { if (total == 0) { Py_DECREF(result); -- 2.40.0