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 04:29:45+02:00
log7336dd0c9918ce403a61cbf852b74217fac62091
tree3fda5f9ad3121fd4c85d6111f10589ee4ecf634d
parent534105d83aded6904f0f9a535d1e28c3a63570d8
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
...@@ -3138,6 +3138,7 @@ pub fn stackGrowth(target: *const Target) StackGrowth {...@@ -3138,6 +3138,7 @@ pub fn stackGrowth(target: *const Target) StackGrowth {
3138/// Returns `null` if no C ABI is defined for this target.3138/// Returns `null` if no C ABI is defined for this target.
3139pub fn cCharSignedness(target: *const Target) ?std.builtin.Signedness {3139pub fn cCharSignedness(target: *const Target) ?std.builtin.Signedness {
3140 switch (target.os.tag) {3140 switch (target.os.tag) {
3141 .ps3 => return .signed,
3141 .opengl => return null,3142 .opengl => return null,
3142 else => {},3143 else => {},
3143 }3144 }