diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-08 04:36:17 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-08 04:36:17 (GMT) |
commit | 3c8ba93e0b2be26588549bde8f65fe064f61a625 (patch) | |
tree | d81683fa67e89a1ed1e1fa67181c826767dcfe40 /Modules/_fileio.c | |
parent | ec8e7168c4ccf729f0042ed100948233241b1511 (diff) | |
download | cpython-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/_fileio.c')
-rw-r--r-- | Modules/_fileio.c | 2 |
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) { |