mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00: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;
|
capacity = max_count;
|
||||||
}
|
}
|
||||||
i64 j = 0;
|
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;
|
index = j;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user