mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-06 21:06:18 -04:00
Fix range in statement bug caused by incorrectly assigned addressing mode #461
This commit is contained in:
1 parent
f9aaff99c6
commit
dbdbbcd60f
4 files changed
+11
-90
No files matched your search
+1
-1
@@ -6739,7 +6739,7 @@ bool check_range(CheckerContext *c, Ast *node, Operand *x, Operand *y, ExactValu
|
||||
}
|
||||
|
||||
if (inline_for_depth_) *inline_for_depth_ = inline_for_depth;
|
||||
} else {
|
||||
} else if (inline_for_depth_ != nullptr) {
|
||||
error(ie->op, "Interval expressions must be constant");
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user