diff options
author | Guido van Rossum <guido@python.org> | 2002-09-12 14:43:41 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-09-12 14:43:41 (GMT) |
commit | efc1188239bf4381b7749d2f43836bbb216cfc44 (patch) | |
tree | 9a0a95f19b6f13a515a51875a9bfa665acf273f7 /Objects/obmalloc.c | |
parent | 770acd3f7fff52eef0d0ad02beaa4c569d70811f (diff) | |
download | cpython-efc1188239bf4381b7749d2f43836bbb216cfc44.zip cpython-efc1188239bf4381b7749d2f43836bbb216cfc44.tar.gz cpython-efc1188239bf4381b7749d2f43836bbb216cfc44.tar.bz2 |
Fix warnings on 64-bit platforms about casts from pointers to ints.
Two of these were real bugs.
Diffstat (limited to 'Objects/obmalloc.c')
-rw-r--r-- | Objects/obmalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c index 95c0e87..753b2cc 100644 --- a/Objects/obmalloc.c +++ b/Objects/obmalloc.c @@ -437,7 +437,7 @@ new_arena(void) 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; |