authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-17 03:03:25+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-17 05:24:15+02:00
log683517681bc8646c98ac3a499352fe468dd6105d
treed07b14ecdd7de554a8cecf192c998c767ea454d6
parent666901b6510f0b57481e3b6550ae69d12edad8f0
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: fix cCharSignedness() to be .signed on ps3

This is different from the usual convention on PowerPC. contributes to https://codeberg.org/ziglang/zig/issues/31341

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

lib/std/Target.zig+1
...@@ -3150,6 +3150,7 @@ pub fn stackGrowth(target: *const Target) StackGrowth {...@@ -3150,6 +3150,7 @@ pub fn stackGrowth(target: *const Target) StackGrowth {
3150/// Returns `null` if no C ABI is defined for this target.3150/// Returns `null` if no C ABI is defined for this target.
3151pub fn cCharSignedness(target: *const Target) ?std.builtin.Signedness {3151pub fn cCharSignedness(target: *const Target) ?std.builtin.Signedness {
3152 switch (target.os.tag) {3152 switch (target.os.tag) {
3153 .ps3 => return .signed,
3153 .opengl => return null,3154 .opengl => return null,
3154 else => {},3155 else => {},
3155 }3156 }