[Python-3000-checkins] r56819 - python/branches/py3k-struni/Modules/_fileio.c

neal.norwitz python-3000-checkins at python.org
Wed Aug 8 06:36:18 CEST 2007


Author: neal.norwitz
Date: Wed Aug  8 06:36:17 2007
New Revision: 56819

Modified:
   python/branches/py3k-struni/Modules/_fileio.c
Log:
Py_ssize_t requires "n" format, this fixes most of the 64-bit only failures.

Modified: python/branches/py3k-struni/Modules/_fileio.c
==============================================================================
--- python/branches/py3k-struni/Modules/_fileio.c	(original)
+++ python/branches/py3k-struni/Modules/_fileio.c	Wed Aug  8 06:36:17 2007
@@ -438,7 +438,7 @@
 	if (!self->readable)
 		return err_mode("reading");
 
-	if (!PyArg_ParseTuple(args, "|i", &size))
+	if (!PyArg_ParseTuple(args, "|n", &size))
 		return NULL;
 
         if (size < 0) {


More information about the Python-3000-checkins mailing list