aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-01-16 09:05:17 +0000
committergingerBill <bill@gingerbill.org>2020-01-16 09:05:17 +0000
commit5af3c7b0e8ede5c30850d9994c475d298848a8d1 (patch)
tree87528be42e23ebc135772a845161cdf0079624f6
parentba85e432e77eec502a00a0bfc3c4b8b30dfb8f32 (diff)
Fix constant slice checking, again
-rw-r--r--src/check_expr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index f23c47a2e..0ec147f68 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -8826,7 +8826,7 @@ ExprKind check_expr_base_internal(CheckerContext *c, Operand *o, Ast *node, Type
capacity = max_count;
}
i64 j = 0;
- if (check_index_value(c, false, nodes[i], capacity, &j)) {
+ if (check_index_value(c, true, nodes[i], capacity, &j)) {
index = j;
}