[Python-checkins] r72673 - python/branches/py3k/Modules/_io/fileio.c

raymond.hettinger python-checkins at python.org
Sat May 16 01:05:29 CEST 2009


Author: raymond.hettinger
Date: Sat May 16 01:05:29 2009
New Revision: 72673

Log:
Silence a compiler warning.

Modified:
   python/branches/py3k/Modules/_io/fileio.c

Modified: python/branches/py3k/Modules/_io/fileio.c
==============================================================================
--- python/branches/py3k/Modules/_io/fileio.c	(original)
+++ python/branches/py3k/Modules/_io/fileio.c	Sat May 16 01:05:29 2009
@@ -547,7 +547,7 @@
 			return NULL;
 		}
 
-		if (PyBytes_GET_SIZE(result) < newsize) {
+		if (PyBytes_GET_SIZE(result) < (Py_ssize_t)newsize) {
 			if (_PyBytes_Resize(&result, newsize) < 0) {
 				if (total == 0) {
 					Py_DECREF(result);


More information about the Python-checkins mailing list