diff options
| author | gingerBill <bill@gingerbill.org> | 2021-09-13 16:44:01 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-09-13 16:44:01 +0100 |
| commit | 526a42c6caac9bc39b9217e58c297d084c3d694a (patch) | |
| tree | ae6b2cb95cc19725a9ff4254efdae605c08bcc8a /src/types.cpp | |
| parent | 8de728e3dc09eff8840ec3842e731f51865daf03 (diff) | |
Remove custom alignment limit
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/types.cpp b/src/types.cpp index 8eb505287..7a5ea489b 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -2972,7 +2972,7 @@ i64 type_align_of_internal(Type *t, TypePath *path) { return 1; } if (t->Union.custom_align > 0) { - return gb_clamp(t->Union.custom_align, 1, build_context.max_align); + return gb_max(t->Union.custom_align, 1); } i64 max = 1; @@ -2993,7 +2993,7 @@ i64 type_align_of_internal(Type *t, TypePath *path) { case Type_Struct: { if (t->Struct.custom_align > 0) { - return gb_clamp(t->Struct.custom_align, 1, build_context.max_align); + return gb_max(t->Struct.custom_align, 1); } if (t->Struct.is_raw_union) { i64 max = 1; |