diff options
Diffstat (limited to 'src/checker/type.cpp')
| -rw-r--r-- | src/checker/type.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/checker/type.cpp b/src/checker/type.cpp index ae415b3d5..085e7c61e 100644 --- a/src/checker/type.cpp +++ b/src/checker/type.cpp @@ -1062,7 +1062,8 @@ i64 type_size_of(BaseTypeSizes s, gbAllocator allocator, Type *t) { if (max < size) max = size; } - return align_formula(max, s.max_align) + type_size_of(s, allocator, t_int); + // NOTE(bill): Align to int + return align_formula(max, s.word_size) + type_size_of(s, allocator, t_int); } break; case TypeRecord_RawUnion: { |