authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-03-19 16:59:07-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-03-20 00:36:41-07:00
log5d389535e875f3d1b4865fc10fb79317b26c5ed7
tree59a25b7285935c701587e39da0d705db2ac31bb5
parent3a836b4800337567735b2619075d8bb4e9f21c4d

std: fix inconsistent errno size on linux

Now it's always u16

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

lib/std/os/linux.zig+2-2
......@@ -2264,7 +2264,7 @@ pub fn map_shadow_stack(addr: u64, size: u64, flags: u32) usize {
22642264}
22652265
22662266pub const E = switch (native_arch) {
2267 .mips, .mipsel => enum(i32) {
2267 .mips, .mipsel => enum(u16) {
22682268 /// No error occurred.
22692269 SUCCESS = 0,
22702270
......@@ -2406,7 +2406,7 @@ pub const E = switch (native_arch) {
24062406
24072407 pub const init = errnoFromSyscall;
24082408 },
2409 .sparc, .sparcel, .sparc64 => enum(i32) {
2409 .sparc, .sparcel, .sparc64 => enum(u16) {
24102410 /// No error occurred.
24112411 SUCCESS = 0,
24122412