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 d823d15..e2a1bf1 100644
--- a/types.c
+++ b/types.c
@@ -1284,7 +1284,7 @@ static bool types_expr(Typer *tr, Expression *e) {
if (!infer_ident_vals(tr, decl_types, arg_types, inferred_idents, inferred_vals, inferred_types))
return false;
- allocr_free(tr->allocr, inferred_idents, ninferred_idents * sizeof *inferred_idents);
+ arr_cleara(&inferred_idents, tr->allocr);
{
Type *type = inferred_types;