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

This commit is contained in:
Neal Norwitz 2007-08-08 04:36:17 +00:00
parent ec8e7168c4
commit 3c8ba93e0b
1 changed files with 1 additions and 1 deletions

View File

@ -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) {