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 b33cadc..9442cb6 100644
--- a/types.c
+++ b/types.c
@@ -1281,7 +1281,7 @@ static bool types_expr(Typer *tr, Expression *e) {
size_t ninferred_idents = arr_len(inferred_idents);
Value *inferred_vals = typer_malloc(tr, ninferred_idents * sizeof *inferred_vals);
Type *inferred_types = typer_malloc(tr, ninferred_idents * sizeof *inferred_types);
- if (!infer_ident_vals(arg_types, decl_types, inferred_idents, inferred_vals, inferred_types))
+ if (!infer_ident_vals(decl_types, arg_types, inferred_idents, inferred_vals, inferred_types))
return false;
{
Type *type = inferred_types;