summaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'types.c')
-rw-r--r--types.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/types.c b/types.c
index d5d1eba..911c0d2 100644
--- a/types.c
+++ b/types.c
@@ -666,7 +666,7 @@ static bool types_fn(Typer *tr, FnExpr *f, Type *t, Location where,
bool entered_fn = false;
assert(t->kind == TYPE_FN);
if (instance) {
- *(Location *)arr_add(&err_ctx->instance_stack) = where;
+ *(Location *)typer_arr_add(tr, &err_ctx->instance_stack) = where;
f = &instance->fn;
} else {
if (t->fn.constness)