mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Silence a compiler warning.
This commit is contained in:
parent
56a00deda2
commit
c3583b292a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue