summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-08-08 04:36:17 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-08-08 04:36:17 (GMT)
commit3c8ba93e0b2be26588549bde8f65fe064f61a625 (patch)
treed81683fa67e89a1ed1e1fa67181c826767dcfe40 /Modules
parentec8e7168c4ccf729f0042ed100948233241b1511 (diff)
downloadcpython-3c8ba93e0b2be26588549bde8f65fe064f61a625.zip
cpython-3c8ba93e0b2be26588549bde8f65fe064f61a625.tar.gz
cpython-3c8ba93e0b2be26588549bde8f65fe064f61a625.tar.bz2
Py_ssize_t requires "n" format, this fixes most of the 64-bit only failures.
Diffstat (limited to 'Modules')
-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) {