[Python-checkins] r42422 - python/trunk/Modules/arraymodule.c

thomas.wouters python-checkins at python.org
Thu Feb 16 18:07:41 CET 2006


Author: thomas.wouters
Date: Thu Feb 16 18:07:41 2006
New Revision: 42422

Modified:
   python/trunk/Modules/arraymodule.c
Log:

Use correct format specifier for Py_ssize_t variable to PyArg_ParseTuple().



Modified: python/trunk/Modules/arraymodule.c
==============================================================================
--- python/trunk/Modules/arraymodule.c	(original)
+++ python/trunk/Modules/arraymodule.c	Thu Feb 16 18:07:41 2006
@@ -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) {


More information about the Python-checkins mailing list