From: Brendan Hansen Date: Fri, 1 Oct 2021 16:04:09 +0000 (-0500) Subject: bugfix with arrays in structures X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=d47152f848f4bb3cea3793ff70bd4cb81c444240;p=onyx.git bugfix with arrays in structures --- diff --git a/bin/onyx b/bin/onyx index 8880c46c..3db06439 100755 Binary files a/bin/onyx and b/bin/onyx differ diff --git a/src/types.c b/src/types.c index 175e826a..c9d74d70 100644 --- a/src/types.c +++ b/src/types.c @@ -1115,7 +1115,7 @@ b32 type_struct_is_simple(Type* type) { b32 is_simple = 1; bh_arr_each(StructMember *, mem, type->Struct.memarr) { - if (type_is_compound((*mem)->type)) { + if (type_is_compound((*mem)->type) || (*mem)->type->kind == Type_Kind_Array) { is_simple = 0; break; }