mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-15 15:44:04 +00:00
Remove custom alignment limit
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user