summaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'types.c')
-rw-r--r--types.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/types.c b/types.c
index ede7275..560f0fc 100644
--- a/types.c
+++ b/types.c
@@ -20,12 +20,12 @@ static inline void *typer_arr_add_(Typer *tr, void **arr, size_t sz) {
}
static inline void typer_block_enter(Typer *tr, Block *b) {
- *(Block **)arr_add(&tr->blocks) = b;
+ *(Block **)arr_adda(&tr->blocks, tr->allocr) = b;
tr->block = b;
}
static inline void typer_block_exit(Typer *tr) {
- arr_remove_last(&tr->blocks);
+ arr_remove_lasta(&tr->blocks, tr->allocr);
tr->block = *(Block **)arr_last(tr->blocks);
}