summaryrefslogtreecommitdiffstats
path: root/Objects/obmalloc.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-09-12 14:43:41 (GMT)
committerGuido van Rossum <guido@python.org>2002-09-12 14:43:41 (GMT)
commitefc1188239bf4381b7749d2f43836bbb216cfc44 (patch)
tree9a0a95f19b6f13a515a51875a9bfa665acf273f7 /Objects/obmalloc.c
parent770acd3f7fff52eef0d0ad02beaa4c569d70811f (diff)
downloadcpython-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.c2
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;