aboutsummaryrefslogtreecommitdiff
path: root/src/checker/type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/checker/type.cpp')
-rw-r--r--src/checker/type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checker/type.cpp b/src/checker/type.cpp
index 4504cd06f..e0ce88c03 100644
--- a/src/checker/type.cpp
+++ b/src/checker/type.cpp
@@ -560,7 +560,7 @@ i64 type_align_of(BaseTypeSizes s, gbAllocator allocator, Type *t) {
case Type_Vector: {
i64 size = type_size_of(s, allocator, t->vector.elem);
// TODO(bill): Type_Vector type_align_of
- return gb_clamp(size, 1, 2*s.max_align);
+ return gb_clamp(size, s.max_align, 2*s.max_align);
} break;
case Type_Structure: {