mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +00:00
Fix warnings on 64-bit platforms about casts from pointers to ints.
Two of these were real bugs.
This commit is contained in:
parent
770acd3f7f
commit
efc1188239
3 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue