mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-08 00:28:49 +00:00
Fix previous commit for arrays
This commit is contained in:
+1
-2
@@ -5397,7 +5397,7 @@ gb_internal Entity *check_selector(CheckerContext *c, Operand *operand, Ast *nod
|
||||
} else {
|
||||
if (is_type_dynamic_array(t)) {
|
||||
init_mem_allocator(c->checker);
|
||||
} else {
|
||||
}
|
||||
sel = lookup_field(operand->type, field_name, operand->mode == Addressing_Type);
|
||||
entity = sel.entity;
|
||||
|
||||
@@ -5410,7 +5410,6 @@ gb_internal Entity *check_selector(CheckerContext *c, Operand *operand, Ast *nod
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (entity == nullptr && selector->kind == Ast_Ident && operand->type != nullptr &&
|
||||
(is_type_array(type_deref(operand->type)) || is_type_simd_vector(type_deref(operand->type)))) {
|
||||
|
||||
Reference in New Issue
Block a user