From 3c8ba93e0b2be26588549bde8f65fe064f61a625 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Wed, 8 Aug 2007 04:36:17 +0000 Subject: [PATCH] Py_ssize_t requires "n" format, this fixes most of the 64-bit only failures. --- Modules/_fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_fileio.c b/Modules/_fileio.c index 60ca8c426f0..abd5d19836a 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) {