From ccb7c3513bf8f149eb46e8d698ace0d08621bf4f Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 12 Sep 2020 15:50:42 +0100 Subject: Fix check_arity_match bug --- src/check_stmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/check_stmt.cpp') diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index d5109206d..3adb2d04d 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -2087,8 +2087,8 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) { } } - check_arity_match(ctx, vd); check_init_variables(ctx, entities, entity_count, vd->values, str_lit("variable declaration")); + check_arity_match(ctx, vd, false); if (ctx->curr_proc_calling_convention == ProcCC_Pure) { if (vd->values.count == 0) { -- cgit v1.2.3