authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-17 03:19:50+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-17 04:29:45+02:00
log97f7ce8cf57bc38b53f6c2b8d58c4465a965bfc2
tree0ea2442ea2ead1794b6eb420790140f8d73765fb
parentbc92241eb7a6d8ea23a4800435d4a5f85fcf1bd1
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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

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

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

lib/std/Target.zig+1-1
...@@ -3140,7 +3140,7 @@ pub fn cCharSignedness(target: *const Target) ?std.builtin.Signedness {...@@ -3140,7 +3140,7 @@ pub fn cCharSignedness(target: *const Target) ?std.builtin.Signedness {
3140 return switch (target.os.tag) {3140 return switch (target.os.tag) {
3141 .driverkit, .ios, .maccatalyst, .macos, .tvos, .visionos, .watchos => .signed,3141 .driverkit, .ios, .maccatalyst, .macos, .tvos, .visionos, .watchos => .signed,
3142 .windows, .uefi => .signed,3142 .windows, .uefi => .signed,
3143 .ps3 => .signed,3143 .ps3, .vita => .signed,
3144 .opengl => null,3144 .opengl => null,
3145 else => switch (target.cpu.arch) {3145 else => switch (target.cpu.arch) {
3146 .aarch64,3146 .aarch64,