]> granicus.if.org Git - python/commitdiff
Use correct format specifier for Py_ssize_t variable to PyArg_ParseTuple().
authorThomas Wouters <thomas@python.org>
Thu, 16 Feb 2006 17:07:41 +0000 (17:07 +0000)
committerThomas Wouters <thomas@python.org>
Thu, 16 Feb 2006 17:07:41 +0000 (17:07 +0000)
Modules/arraymodule.c

index 9444e9eca91fa605ab3eb8c93f80d6823dc64839..dffb2e71e0dc016c0c7dae9a0db234bd988a2189 100644 (file)
@@ -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) {