Silence a compiler warning.
authorRaymond Hettinger <python@rcn.com>
Fri, 15 May 2009 23:05:29 +0000 (23:05 +0000)
committerRaymond Hettinger <python@rcn.com>
Fri, 15 May 2009 23:05:29 +0000 (23:05 +0000)
Modules/_io/fileio.c

index 555dc12c69dd5a354683786c2bd68bed35336c4c..d3a1cfb6e22f3e0d52032600c5614a7e8deae242 100644 (file)
@@ -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);