mirror of
https://github.com/ziglang/zig.git
synced 2026-01-14 19:35:12 +00:00
stage1: use size_t over int as index in resolve_opaque_type
This commit is contained in:
parent
d71f339395
commit
0a56390230
@ -3462,7 +3462,7 @@ static Error resolve_opaque_type(CodeGen *g, ZigType *opaque_type) {
|
||||
if (container_node != nullptr) {
|
||||
assert(container_node->type == NodeTypeContainerDecl);
|
||||
AstNodeContainerDecl *container_decl = &container_node->data.container_decl;
|
||||
for (int i = 0; i < container_decl->fields.length; i++) {
|
||||
for (size_t i = 0; i < container_decl->fields.length; i++) {
|
||||
AstNode *field_node = container_decl->fields.items[i];
|
||||
add_node_error(g, field_node, buf_create_from_str("opaque types cannot have fields"));
|
||||
err = ErrorSemanticAnalyzeFail;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user