Mercurial > cpython-lru_cache-weakref
diff Objects/obmalloc.c @ 25233:8d751b62ecc4 legacy-trunk
Fix warnings on 64-bit platforms about casts from pointers to ints.
Two of these were real bugs.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 12 Sep 2002 14:43:41 +0000 |
| parents | 0a08ed05bd42 |
| children | 75756c8558bd |
line wrap: on
line diff
--- a/Objects/obmalloc.c Thu Sep 12 14:41:20 2002 +0000 +++ b/Objects/obmalloc.c Thu Sep 12 14:43:41 2002 +0000 @@ -437,7 +437,7 @@ arenabase = bp; nfreepools = ARENA_SIZE / POOL_SIZE; assert(POOL_SIZE * nfreepools == ARENA_SIZE); - excess = (uint)bp & POOL_SIZE_MASK; + excess = (uint) ((Py_uintptr_t)bp & POOL_SIZE_MASK); if (excess != 0) { --nfreepools; arenabase += POOL_SIZE - excess;
