summaryrefslogtreecommitdiff
path: root/new/stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'new/stack.c')
-rw-r--r--new/stack.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/new/stack.c b/new/stack.c
index 55dc384..433c6b5 100644
--- a/new/stack.c
+++ b/new/stack.c
@@ -188,10 +188,10 @@ void uiStackAdd(uiControl *st, uiControl *c, int stretchy)
if (s->len >= s->cap) {
s->cap += stackCapGrow;
- s->controls = (uiControl **) uiRealloc(s->controls, s->cap * sizeof (uiControl *));
- s->stretchy = (int *) uiRealloc(s->stretchy, s->cap * sizeof (int));
- s->width = (intmax_t *) uiRealloc(s->width, s->cap * sizeof (intmax_t));
- s->height = (intmax_t *) uiRealloc(s->height, s->cap * sizeof (intmax_t));
+ s->controls = (uiControl **) uiRealloc(s->controls, s->cap * sizeof (uiControl *), "uiControl *[]");
+ s->stretchy = (int *) uiRealloc(s->stretchy, s->cap * sizeof (int), "int[]");
+ s->width = (intmax_t *) uiRealloc(s->width, s->cap * sizeof (intmax_t), "intmax_t[]");
+ s->height = (intmax_t *) uiRealloc(s->height, s->cap * sizeof (intmax_t), "intmax_t[]");
}
s->controls[s->len] = c;
s->stretchy[s->len] = stretchy;