mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Py_ssize_t requires "n" format, this fixes most of the 64-bit only failures.
This commit is contained in:
parent
ec8e7168c4
commit
3c8ba93e0b
1 changed files with 1 additions and 1 deletions
|
@ -438,7 +438,7 @@ fileio_read(PyFileIOObject *self, PyObject *args)
|
|||
if (!self->readable)
|
||||
return err_mode("reading");
|
||||
|
||||
if (!PyArg_ParseTuple(args, "|i", &size))
|
||||
if (!PyArg_ParseTuple(args, "|n", &size))
|
||||
return NULL;
|
||||
|
||||
if (size < 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue