diff options
| author | gingerBill <bill@gingerbill.org> | 2023-02-21 16:31:22 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-02-21 16:31:22 +0000 |
| commit | a2f02b8b3218dc83a2a2783ceb79cc57abacc7bd (patch) | |
| tree | bc7f6f22ad913f1e639eaa79d2be57f579e70995 /src/check_stmt.cpp | |
| parent | ee4ed126e1423d7566470b31e86f4ad1021328f2 (diff) | |
Fix bug with for in statements and pointer intervals
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 3039995b9..f300f45c7 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -725,7 +725,7 @@ gb_internal void check_inline_range_stmt(CheckerContext *ctx, Ast *node, u32 mod Operand x = {}; Operand y = {}; - bool ok = check_range(ctx, expr, &x, &y, &inline_for_depth); + bool ok = check_range(ctx, expr, true, &x, &y, &inline_for_depth); if (!ok) { goto skip_expr; } @@ -1439,7 +1439,7 @@ gb_internal void check_range_stmt(CheckerContext *ctx, Ast *node, u32 mod_flags) Operand x = {}; Operand y = {}; - bool ok = check_range(ctx, expr, &x, &y, nullptr); + bool ok = check_range(ctx, expr, true, &x, &y, nullptr); if (!ok) { goto skip_expr_range_stmt; } |