From f453b313f62ba42d748f00628be7b3750c797c86 Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 29 Jun 2023 09:59:30 +0200 Subject: add initializers (only static for initialier list rn) and other fixes --- type.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'type.c') 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; -- cgit v1.2.3