aboutsummaryrefslogtreecommitdiffhomepage
path: root/type.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-06-29 09:59:30 +0200
committerlemon <lsof@mailbox.org>2023-06-29 09:59:30 +0200
commitf453b313f62ba42d748f00628be7b3750c797c86 (patch)
treee654029d425dee2adf30c0fa2adba31d0266db1c /type.c
parent3b96204593b9812674126bad8de14419009682c8 (diff)
add initializers (only static for initialier list rn)
and other fixes
Diffstat (limited to 'type.c')
-rw-r--r--type.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/type.c b/type.c
index c698817..807c400 100644
--- a/type.c
+++ b/type.c
@@ -152,7 +152,7 @@ typealign(union type t)
case TYENUM:
return targ_primalign[t.backing];
case TYARRAY:
- return targ_primalign[typechild(t).t];
+ return typealign(typechild(t));
case TYSTRUCT:
case TYUNION:
return typedata[t.dat].align;