authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-06 17:27:32+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-06 20:17:03+02:00
logeef499812c37112f4b03bde73a632c23ca753d20
treebf9da3ff2a39a0dae8f1948c022c272c19f051c3
parenta1d3e567635e79e0fbd8d56225d5098bc6cb8bbb
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: Fix C long double size for amdhsa, amdpal, and mesa3d (8, not 16).


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/Target.zig+1-1
...@@ -2256,7 +2256,7 @@ pub fn c_type_bit_size(target: Target, c_type: CType) u16 {...@@ -2256,7 +2256,7 @@ pub fn c_type_bit_size(target: Target, c_type: CType) u16 {
2256 .short, .ushort => return 16,2256 .short, .ushort => return 16,
2257 .int, .uint, .float => return 32,2257 .int, .uint, .float => return 32,
2258 .long, .ulong, .longlong, .ulonglong, .double => return 64,2258 .long, .ulong, .longlong, .ulonglong, .double => return 64,
2259 .longdouble => return 128,2259 .longdouble => return 64,
2260 },2260 },
22612261
2262 .opencl, .vulkan => switch (c_type) {2262 .opencl, .vulkan => switch (c_type) {