aboutsummaryrefslogtreecommitdiff
path: root/src/check_stmt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/check_stmt.cpp')
-rw-r--r--src/check_stmt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp
index 8c7586a12..d6c8f654d 100644
--- a/src/check_stmt.cpp
+++ b/src/check_stmt.cpp
@@ -692,7 +692,7 @@ void check_stmt_internal(Checker *c, AstNode *node, u32 flags) {
// an extra allocation
Array<Operand> operands = {};
array_init(&operands, c->tmp_allocator, 2 * lhs_count);
- check_unpack_arguments(c, lhs_count, &operands, as->rhs, true);
+ check_unpack_arguments(c, nullptr, lhs_count, &operands, as->rhs, true);
isize rhs_count = operands.count;
for_array(i, operands) {
@@ -849,7 +849,7 @@ void check_stmt_internal(Checker *c, AstNode *node, u32 flags) {
}
} else {
array_init(&operands, heap_allocator(), 2*rs->results.count);
- check_unpack_arguments(c, -1, &operands, rs->results, false);
+ check_unpack_arguments(c, nullptr, -1, &operands, rs->results, false);
}