From dbdbbcd60f1273e246d11696476ac4772f91c258 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 2 Nov 2019 10:57:42 +0000 Subject: Fix range in statement bug caused by incorrectly assigned addressing mode #461 --- src/check_expr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/check_expr.cpp') 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; } -- cgit v1.2.3