diff options
-rw-r--r-- | Modules/_io/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c index 555dc12..d3a1cfb 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); |