Fix constant slice checking, again

This commit is contained in:
gingerBill
2020-01-16 09:05:17 +00:00
parent ba85e432e7
commit 5af3c7b0e8
+1 -1
View File
@@ -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;
}