authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-16 22:05:20+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-17 04:29:44+02:00
logbeac4e6ab13d0f5224d38f8b565318d5a16f9a54
tree3dd2d70c45d3a705cc57c6320c981300f0be0613
parentdaf46381a684407cf57685264354d07eeeef99a3
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: fix cTypeByteSize(.longdouble) when cTypeBitSize(.longdouble) == 32

This occurs on AVR.

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

lib/std/Target.zig+1
......@@ -3204,6 +3204,7 @@ pub fn cTypeByteSize(t: *const Target, c_type: CType) ?u16 {
32043204 => @divExact(cTypeBitSize(t, c_type) orelse return null, 8),
32053205
32063206 .longdouble => switch (cTypeBitSize(t, c_type) orelse return null) {
3207 32 => 4,
32073208 64 => 8,
32083209 80 => @intCast(std.mem.alignForward(usize, 10, cTypeAlignment(t, c_type).?)),
32093210 128 => 16,