aboutsummaryrefslogtreecommitdiff
path: root/src/compile/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compile/types.c')
-rw-r--r--src/compile/types.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compile/types.c b/src/compile/types.c
index 58a0260b..2b345b41 100644
--- a/src/compile/types.c
+++ b/src/compile/types.c
@@ -135,8 +135,8 @@ Text_t compile_type_info(type_t *t) {
}
case OptionalType: {
type_t *non_optional = Match(t, OptionalType)->type;
- return Texts("Optional$info(sizeof(", compile_type(non_optional), "), __alignof__(", compile_type(non_optional),
- "), ", compile_type_info(non_optional), ")");
+ return Texts("Optional$info(", (int64_t)type_size(t), ", ", (int64_t)type_align(t), ", ",
+ compile_type_info(non_optional), ")");
}
case TypeInfoType: return Texts("Type$info(", quoted_text(type_to_text(Match(t, TypeInfoType)->type)), ")");
case MemoryType: return Text("&Memory$info");