[Python-checkins] r65975 - in python/trunk: Misc/NEWS Objects/obmalloc.c

christian.heimes python-checkins at python.org
Fri Aug 22 21:34:15 CEST 2008


Author: christian.heimes
Date: Fri Aug 22 21:34:15 2008
New Revision: 65975

Log:
Changed type of numarenas from uint to size_t to silence a GCC warning on 64bit OSes. Reviewed by Benjamin Peterson.

Modified:
   python/trunk/Misc/NEWS
   python/trunk/Objects/obmalloc.c

Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Fri Aug 22 21:34:15 2008
@@ -12,6 +12,9 @@
 Core and Builtins
 -----------------
 
+- Issue #3642: Changed type of numarenas from uint to size_t
+  in order to silence a compilier warning on 64bit OSes.
+
 Library
 -------
 

Modified: python/trunk/Objects/obmalloc.c
==============================================================================
--- python/trunk/Objects/obmalloc.c	(original)
+++ python/trunk/Objects/obmalloc.c	Fri Aug 22 21:34:15 2008
@@ -517,7 +517,7 @@
 #endif
 	if (unused_arena_objects == NULL) {
 		uint i;
-		uint numarenas;
+		size_t numarenas;
 		size_t nbytes;
 
 		/* Double the number of arena objects on each allocation.


More information about the Python-checkins mailing list