std.Target: Fix long/unsigned long size for aarch64-watchos-ilp32.

This commit is contained in:
Alex Rønne Petersen 2024-11-28 21:26:35 +01:00
parent aea4f705dc
commit 310d1c1ff4
No known key found for this signature in database

View file

@ -3062,7 +3062,10 @@ pub fn cTypeBitSize(target: Target, c_type: CType) u16 {
.gnux32, .muslx32 => return 32,
else => return 64,
},
else => return 64,
else => switch (target.abi) {
.ilp32 => return 32,
else => return 64,
},
},
.longlong, .ulonglong, .double => return 64,
.longdouble => switch (target.cpu.arch) {