diff options
| author | gingerBill <bill@gingerbill.org> | 2019-11-02 10:57:42 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-11-02 10:57:42 +0000 |
| commit | dbdbbcd60f1273e246d11696476ac4772f91c258 (patch) | |
| tree | 2491e48211f66a17b8b0579e6f463510147b6ce0 /src/check_expr.cpp | |
| parent | f9aaff99c6d2a2c2866a54f0b59b0cc2c47a9eaf (diff) | |
Fix range in statement bug caused by incorrectly assigned addressing mode #461
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index fae38fa01..ef43812c0 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -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; } |