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 {
34823482 .longdouble => 128,
34833483 },
34843484
3485 .psx => switch (c_type) {
3485 .psx, .ps3 => switch (c_type) {
34863486 .char => 8,
34873487 .short, .ushort => 16,
34883488 .int, .uint, .long, .ulong, .float => 32,
......@@ -3514,7 +3514,6 @@ pub fn cTypeBitSize(target: *const Target, c_type: CType) ?u16 {
35143514
35153515 .opengl => null,
35163516
3517 .ps3,
35183517 .managarm,
35193518 => @panic("specify the C integer and float type sizes for this OS"),
35203519 };