authorgravatar for tengs.fan@gmail.comTengs Fan <tengs.fan@gmail.com> 2026-09-28 08:16:52-04:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-09-29 23:29:02+02:00
logfd1c54933277d9f2ffe9bab1100228e139de67ae
tree5ca942623a91a3c49f00d1d6c6bb48af7f9ad086
parenta7aec00feb79fd1f90307721a4ce1543e4dc4306

Uring Errno: fix casting

1. @bitCast has no target type anymore and throws error, discard it because the old errno only accept usize. The new errno takes any integer width and does the signed conversion itself 2. also throw away the widening (i32 -> usize), the logic is in linux.errno now

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

lib/std/Io/Uring.zig+1-1
...@@ -1100,7 +1100,7 @@ const Completion = struct {...@@ -1100,7 +1100,7 @@ const Completion = struct {
1100 };1100 };
11011101
1102 fn errno(completion: Completion) linux.E {1102 fn errno(completion: Completion) linux.E {
1103 return linux.errno(@bitCast(@as(isize, completion.result)));1103 return linux.errno(completion.result);
1104 }1104 }
1105};1105};
11061106