Commit e678862520

Alex Rønne Petersen <alex@alexrp.com>
2024-08-06 15:48:47
std.Target: Fix C type alignment calculation for sparc64.
1 parent 98153c8
Changed files (1)
lib
lib/std/Target.zig
@@ -2359,7 +2359,6 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {
             .mips,
             .mipsel,
             .sparc,
-            .sparc64,
             .lanai,
             .nvptx,
             .nvptx64,
@@ -2379,6 +2378,7 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {
             .powerpc64le,
             .riscv32,
             .riscv64,
+            .sparc64,
             .x86_64,
             .wasm32,
             .wasm64,
@@ -2471,7 +2471,6 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {
             .mips,
             .mipsel,
             .sparc,
-            .sparc64,
             .lanai,
             .nvptx,
             .nvptx64,
@@ -2491,6 +2490,7 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {
             .powerpc64le,
             .riscv32,
             .riscv64,
+            .sparc64,
             .x86_64,
             .wasm32,
             .wasm64,