From df78b8ad3ebd263849eee6736fd78efe017522a4 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Mon, 6 Feb 2017 21:31:27 +0000 Subject: Make checking map key exists optional --- src/check_decl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/check_decl.c') diff --git a/src/check_decl.c b/src/check_decl.c index 1cbfcacc6..b690799af 100644 --- a/src/check_decl.c +++ b/src/check_decl.c @@ -63,7 +63,7 @@ void check_init_variables(Checker *c, Entity **lhs, isize lhs_count, AstNodeArra // an extra allocation ArrayOperand operands = {0}; array_init_reserve(&operands, c->tmp_allocator, 2*lhs_count); - check_unpack_arguments(c, &operands, inits); + check_unpack_arguments(c, lhs_count, &operands, inits, true); isize rhs_count = operands.count; for_array(i, operands) { -- cgit v1.2.3