From: Christian Heimes Date: Fri, 22 Aug 2008 19:34:15 +0000 (+0000) Subject: Changed type of numarenas from uint to size_t to silence a GCC warning on 64bit OSes... X-Git-Tag: v2.6rc1~148 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb1813cb8d44e7069444f957d21bd460ddc234ab;p=python Changed type of numarenas from uint to size_t to silence a GCC warning on 64bit OSes. Reviewed by Benjamin Peterson. --- diff --git a/Misc/NEWS b/Misc/NEWS index 7dc9c0497e..f7a18c0b2c 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -12,6 +12,9 @@ What's New in Python 2.6 release candidate 1? 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 ------- diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c index da8f9c2d37..b4ad60a865 100644 --- a/Objects/obmalloc.c +++ b/Objects/obmalloc.c @@ -517,7 +517,7 @@ new_arena(void) #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.