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 05:24:11+02:00
log666901b6510f0b57481e3b6550ae69d12edad8f0
treeefa6c56f2c2f13f626fc58178500a1d02656eb17
parentedb39e9afce9c77142dd1559cbdfbcecfab250ec
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
......@@ -3495,7 +3495,7 @@ pub fn cTypeBitSize(target: *const Target, c_type: CType) ?u16 {
34953495 .longdouble => 128,
34963496 },
34973497
3498 .psx => switch (c_type) {
3498 .psx, .ps3 => switch (c_type) {
34993499 .char => 8,
35003500 .short, .ushort => 16,
35013501 .int, .uint, .long, .ulong, .float => 32,
......@@ -3527,7 +3527,6 @@ pub fn cTypeBitSize(target: *const Target, c_type: CType) ?u16 {
35273527
35283528 .opengl => null,
35293529
3530 .ps3,
35313530 .contiki,
35323531 .managarm,
35333532 => @panic("specify the C integer and float type sizes for this OS"),