commit | 7a2f83b706b3b8ba4aa62b0e125fb604c7f6b48e | [log] [tgz] |
---|---|---|
author | Thomas Wouters <thomas@python.org> | Thu Feb 16 17:07:41 2006 +0000 |
committer | Thomas Wouters <thomas@python.org> | Thu Feb 16 17:07:41 2006 +0000 |
tree | 43ea512e0478102945857bf502c6126c00b44289 | |
parent | 977485d8883fc180e2e12d1a4a8e762cf89fc0ca [diff] |
Use correct format specifier for Py_ssize_t variable to PyArg_ParseTuple().
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 9444e9e..dffb2e7 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c
@@ -1195,7 +1195,7 @@ PyObject *f; Py_ssize_t n; FILE *fp; - if (!PyArg_ParseTuple(args, "Oi:fromfile", &f, &n)) + if (!PyArg_ParseTuple(args, "On:fromfile", &f, &n)) return NULL; fp = PyFile_AsFile(f); if (fp == NULL) {