[Python-checkins] r42779 - python/branches/tim-obmalloc/Objects/obmalloc.c
tim.peters
python-checkins at python.org
Thu Mar 2 08:59:44 CET 2006
Author: tim.peters
Date: Thu Mar 2 08:59:42 2006
New Revision: 42779
Modified:
python/branches/tim-obmalloc/Objects/obmalloc.c
Log:
Oops! I "over-optimized" the new spelling of the
Py_ADDRESS_IN_RANGE() _function_. Repaired.
Modified: python/branches/tim-obmalloc/Objects/obmalloc.c
==============================================================================
--- python/branches/tim-obmalloc/Objects/obmalloc.c (original)
+++ python/branches/tim-obmalloc/Objects/obmalloc.c Thu Mar 2 08:59:42 2006
@@ -1717,9 +1717,8 @@
int
Py_ADDRESS_IN_RANGE(void *P, poolp pool)
{
- const uptr address = arenas[pool->arenaindex].address;
return pool->arenaindex < maxarenas &&
- address != 0 &&
- (uptr)P - address < (uptr)ARENA_SIZE;
+ arenas[pool->arenaindex].address != 0 &&
+ (uptr)P - arenas[pool->arenaindex].address < (uptr)ARENA_SIZE;
}
#endif
More information about the Python-checkins
mailing list