mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
More low-hanging fruit. Still need to re-arrange some code (or find a better
solution) in the same way as listobject.c got changed. Hoping for a better solution.
This commit is contained in:
parent
1cf3964fd1
commit
a62862120d
5 changed files with 80 additions and 79 deletions
|
@ -529,7 +529,7 @@ new_arena(void)
|
|||
nbytes = numarenas * sizeof(*arenas);
|
||||
if (nbytes / sizeof(*arenas) != numarenas)
|
||||
return NULL; /* overflow */
|
||||
arenaobj = realloc(arenas, nbytes);
|
||||
arenaobj = (arena_object *)realloc(arenas, nbytes);
|
||||
if (arenaobj == NULL)
|
||||
return NULL;
|
||||
arenas = arenaobj;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue