mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-16 16:01:26 -07:00
Fix bug with union literal checking crashing the compiler
This commit is contained in:
+4
-3
@@ -599,9 +599,10 @@ void check_union_type(Checker *c, Type *union_type, AstNode *node) {
|
||||
map_entity_set(&entity_map, hash_string(name), f);
|
||||
}
|
||||
|
||||
union_type->Record.fields = fields;
|
||||
union_type->Record.field_count = field_count;
|
||||
union_type->Record.are_offsets_set = false;
|
||||
union_type->Record.fields = fields;
|
||||
union_type->Record.fields_in_src_order = fields;
|
||||
union_type->Record.field_count = field_count;
|
||||
union_type->Record.are_offsets_set = false;
|
||||
|
||||
|
||||
for_array(i, ut->variants) {
|
||||
|
||||
Reference in New Issue
Block a user