From 51878a8269cf3af046f70ac04118c68f11913c14 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Mon, 25 Jan 2021 09:50:46 -0600 Subject: [PATCH] tiny simplification --- src/onyxtypes.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/onyxtypes.c b/src/onyxtypes.c index 810af051..efa806cf 100644 --- a/src/onyxtypes.c +++ b/src/onyxtypes.c @@ -990,10 +990,7 @@ b32 type_struct_is_simple(Type* type) { b32 is_simple = 1; bh_arr_each(StructMember *, mem, type->Struct.memarr) { - if ((*mem)->type->kind == Type_Kind_Struct - || (*mem)->type->kind == Type_Kind_Array - || (*mem)->type->kind == Type_Kind_Slice - || (*mem)->type->kind == Type_Kind_DynArray) { + if (type_is_compound((*mem)->type)) { is_simple = 0; break; } -- 2.25.1