projects
/
onyx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37f6c4e
)
tiny simplification
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Mon, 25 Jan 2021 15:50:46 +0000
(09:50 -0600)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Mon, 25 Jan 2021 15:50:46 +0000
(09:50 -0600)
src/onyxtypes.c
patch
|
blob
|
history
diff --git
a/src/onyxtypes.c
b/src/onyxtypes.c
index 810af05125be81971304e9c0755b9e68efbbfa54..efa806cf0688c84b4046796e67d9ee570d1b54bd 100644
(file)
--- 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;
}