diff options
author | Raymond Hettinger <python@rcn.com> | 2009-05-15 23:05:29 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2009-05-15 23:05:29 (GMT) |
commit | c3583b292ac038a8d5867e3ded1dc25c64800d74 (patch) | |
tree | 8aabc3aead6dd991b5b84500dda1aeef7c48011f | |
parent | 56a00deda295ec8432ade7b1b9de383af854a8da (diff) | |
download | cpython-c3583b292ac038a8d5867e3ded1dc25c64800d74.zip cpython-c3583b292ac038a8d5867e3ded1dc25c64800d74.tar.gz cpython-c3583b292ac038a8d5867e3ded1dc25c64800d74.tar.bz2 |
Silence a compiler warning.
-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); |