mirror of
https://github.com/odin-lang/Odin.git
synced 2026-07-11 10:29:32 +00:00
Fix constant slice checking, again
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user