Py_ssize_t requires "n" format, this fixes most of the 64-bit only failures.
This commit is contained in:
parent
ec8e7168c4
commit
3c8ba93e0b
|
@ -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…
Reference in New Issue