authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-17 02:58:48+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-17 04:29:45+02:00
log534105d83aded6904f0f9a535d1e28c3a63570d8
treec03ae37c69a4b66f00802e151808ba781d9e8bb8
parent85c6d40cbdadfdb57feba90af128f380c3d07836
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: fill out cTypeBitSize() for ps3

contributes to https://codeberg.org/ziglang/zig/issues/31341

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

lib/std/Target.zig+1-2
...@@ -3482,7 +3482,7 @@ pub fn cTypeBitSize(target: *const Target, c_type: CType) ?u16 {...@@ -3482,7 +3482,7 @@ pub fn cTypeBitSize(target: *const Target, c_type: CType) ?u16 {
3482 .longdouble => 128,3482 .longdouble => 128,
3483 },3483 },
34843484
3485 .psx => switch (c_type) {3485 .psx, .ps3 => switch (c_type) {
3486 .char => 8,3486 .char => 8,
3487 .short, .ushort => 16,3487 .short, .ushort => 16,
3488 .int, .uint, .long, .ulong, .float => 32,3488 .int, .uint, .long, .ulong, .float => 32,
...@@ -3514,7 +3514,6 @@ pub fn cTypeBitSize(target: *const Target, c_type: CType) ?u16 {...@@ -3514,7 +3514,6 @@ pub fn cTypeBitSize(target: *const Target, c_type: CType) ?u16 {
35143514
3515 .opengl => null,3515 .opengl => null,
35163516
3517 .ps3,
3518 .managarm,3517 .managarm,
3519 => @panic("specify the C integer and float type sizes for this OS"),3518 => @panic("specify the C integer and float type sizes for this OS"),
3520 };3519 };