From: Brendan Hansen Date: Mon, 25 Jan 2021 15:50:46 +0000 (-0600) Subject: tiny simplification X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=51878a8269cf3af046f70ac04118c68f11913c14;p=onyx.git tiny simplification --- 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; }