mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-13 01:32:21 -07:00
* src/itree.c (itree_stack_ensure_space): Use xpalloc properly.
This commit is contained in:
parent
4deaff20e4
commit
d8d526fa2f
1 changed files with 4 additions and 3 deletions
|
|
@ -183,9 +183,10 @@ itree_stack_ensure_space (struct itree_stack *stack, uintmax_t nelements)
|
|||
stack->nodes = xrealloc (stack->nodes,
|
||||
stack->size * sizeof (*stack->nodes));
|
||||
#else
|
||||
igc_xpalloc_raw_exact (&stack->nodes, &stack->size,
|
||||
nelements - stack->size, -1,
|
||||
"itree stack");
|
||||
stack->nodes
|
||||
= igc_xpalloc_raw_exact (stack->nodes, &stack->size,
|
||||
nelements - stack->size, -1,
|
||||
"itree stack");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue