Silence a compiler warning.

This commit is contained in:
Raymond Hettinger 2009-05-15 23:05:29 +00:00
parent 56a00deda2
commit c3583b292a

View 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);