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

This commit is contained in:
Christian Heimes 2008-08-22 19:34:15 +00:00
parent af1aae3aa6
commit fb1813cb8d
2 changed files with 4 additions and 1 deletions

View File

@ -12,6 +12,9 @@ What's New in Python 2.6 release candidate 1?
Core and Builtins 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 Library
------- -------

View File

@ -517,7 +517,7 @@ new_arena(void)
#endif #endif
if (unused_arena_objects == NULL) { if (unused_arena_objects == NULL) {
uint i; uint i;
uint numarenas; size_t numarenas;
size_t nbytes; size_t nbytes;
/* Double the number of arena objects on each allocation. /* Double the number of arena objects on each allocation.