From fd1c54933277d9f2ffe9bab1100228e139de67ae Mon Sep 17 00:00:00 2001 From: Tengs Fan Date: Mon, 28 Sep 2026 08:16:52 -0400 Subject: [PATCH] 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 --- lib/std/Io/Uring.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/Io/Uring.zig b/lib/std/Io/Uring.zig index e86852bb5197fb3105dc5c294068cf4a361a77f0..907d96c6fc7d12264d6a1615ff1f46133dc5914a 100644 --- a/lib/std/Io/Uring.zig +++ b/lib/std/Io/Uring.zig @@ -1100,7 +1100,7 @@ const Completion = struct { }; fn errno(completion: Completion) linux.E { - return linux.errno(@bitCast(@as(isize, completion.result))); + return linux.errno(completion.result); } }; -- 2.54.0