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:
Anthony Baxter 2006-04-11 07:42:36 +00:00
parent 1cf3964fd1
commit a62862120d
5 changed files with 80 additions and 79 deletions

View file

@ -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;