From: Thomas Wouters Date: Thu, 16 Feb 2006 17:07:41 +0000 (+0000) Subject: Use correct format specifier for Py_ssize_t variable to PyArg_ParseTuple(). X-Git-Tag: v2.5a0~648 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a2f83b706b3b8ba4aa62b0e125fb604c7f6b48e;p=python Use correct format specifier for Py_ssize_t variable to PyArg_ParseTuple(). --- diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 9444e9eca9..dffb2e71e0 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -1195,7 +1195,7 @@ array_fromfile(arrayobject *self, PyObject *args) 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) {