aboutsummaryrefslogtreecommitdiffhomepage
path: root/type.c
diff options
context:
space:
mode:
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;