mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-16 19:02:23 -07:00
Fix constant slice checking, again
This commit is contained in:
+1
-1
@@ -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