summaryrefslogtreecommitdiff
path: root/infer.c
diff options
context:
space:
mode:
Diffstat (limited to 'infer.c')
-rw-r--r--infer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/infer.c b/infer.c
index bcb3103..544ca78 100644
--- a/infer.c
+++ b/infer.c
@@ -24,7 +24,7 @@ static bool infer_from_expr(Typer *tr, Expression *match, Expression *to, Identi
return false;
Copier c = copier_create(tr->allocr, tr->block);
Value new_val;
- copy_val_full(&c, &new_val, &vals[idx], &to->type);
+ copy_val_full(&c, &new_val, vals[idx], &to->type);
vals[idx] = new_val;
break;
}