Assign element to Slice not Array when alloc a Type_Slice
This commit is contained in:
1 parent
5ac7fe453f
commit
a99da47b0d
1 file changed
+1
-1
+1
-1
@@ -988,7 +988,7 @@ gb_internal Type *alloc_type_enumerated_array(Type *elem, Type *index, ExactValu
|
||||
|
||||
gb_internal Type *alloc_type_slice(Type *elem) {
|
||||
Type *t = alloc_type(Type_Slice);
|
||||
t->Array.elem = elem;
|
||||
t->Slice.elem = elem;
|
||||
return t;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user