diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-02-06 21:31:27 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-02-06 21:31:27 +0000 |
| commit | df78b8ad3ebd263849eee6736fd78efe017522a4 (patch) | |
| tree | a1325cba9a7664bcd76b33eb7d9ac8cea6774bf6 /src/check_decl.c | |
| parent | f11d73ffaa5df21437714e73bb72352ed17d57a9 (diff) | |
Make checking map key exists optional
Diffstat (limited to 'src/check_decl.c')
| -rw-r--r-- | src/check_decl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |