summaryrefslogtreecommitdiffstats
path: root/Modules/_fileio.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_fileio.c')
-rw-r--r--Modules/_fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_fileio.c b/Modules/_fileio.c
index 60ca8c4..abd5d19 100644
--- a/Modules/_fileio.c
+++ b/Modules/_fileio.c
@@ -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) {