mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 17:34:34 +00:00
Fix range in statement bug caused by incorrectly assigned addressing mode #461
This commit is contained in:
@@ -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