mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
Merge pull request #2686 from ryuukk/patch-8
Assign element to Slice not Array when alloc a Type_Slice
This commit is contained in:
+1
-1
@@ -997,7 +997,7 @@ gb_internal Type *alloc_type_enumerated_array(Type *elem, Type *index, ExactValu
|
|||||||
|
|
||||||
gb_internal Type *alloc_type_slice(Type *elem) {
|
gb_internal Type *alloc_type_slice(Type *elem) {
|
||||||
Type *t = alloc_type(Type_Slice);
|
Type *t = alloc_type(Type_Slice);
|
||||||
t->Array.elem = elem;
|
t->Slice.elem = elem;
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user