diff options
| author | gingerBill <bill@gingerbill.org> | 2024-05-16 16:27:09 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-05-16 16:27:09 +0100 |
| commit | c9b1c99a4057b7e3f6caee3fb37cf85ca29a7fc9 (patch) | |
| tree | bb00cdb51a5c3120eb2a7cf5aa48e6ece3e7dcb6 /src/check_builtin.cpp | |
| parent | 32245e93a106c5cb1ee9b448789f623a4dbef717 (diff) | |
Fix `soa_zip` and `soa_unzip`
Diffstat (limited to 'src/check_builtin.cpp')
| -rw-r--r-- | src/check_builtin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp index c7d27cf38..4636d810a 100644 --- a/src/check_builtin.cpp +++ b/src/check_builtin.cpp @@ -3428,8 +3428,8 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As auto types = slice_make<Type *>(permanent_allocator(), t->Struct.fields.count-1); for_array(i, types) { Entity *f = t->Struct.fields[i]; - GB_ASSERT(f->type->kind == Type_Pointer); - types[i] = alloc_type_slice(f->type->Pointer.elem); + GB_ASSERT(f->type->kind == Type_MultiPointer); + types[i] = alloc_type_slice(f->type->MultiPointer.elem); } operand->type = alloc_type_tuple_from_field_types(types.data, types.count, false, false); |