Commit 3c8ba93e authored by Neal Norwitz's avatar Neal Norwitz

Py_ssize_t requires "n" format, this fixes most of the 64-bit only failures.

parent ec8e7168
...@@ -438,7 +438,7 @@ fileio_read(PyFileIOObject *self, PyObject *args) ...@@ -438,7 +438,7 @@ fileio_read(PyFileIOObject *self, PyObject *args)
if (!self->readable) if (!self->readable)
return err_mode("reading"); return err_mode("reading");
if (!PyArg_ParseTuple(args, "|i", &size)) if (!PyArg_ParseTuple(args, "|n", &size))
return NULL; return NULL;
if (size < 0) { if (size < 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment