authorgravatar for joran@ronomon.comJoran Dirk Greef <joran@ronomon.com> 2020-09-21 11:09:09+02:00
committergravatar for joran@ronomon.comJoran Dirk Greef <joran@ronomon.com> 2020-09-21 11:09:09+02:00
log57603fd26d2902d82a7fd5e9ec2529b38bd51344
treef08340639668ebe097f7f2e48a8fa7f55c82983f
parent575ed941d7b53e4643ab803e5500c96e0f4698b3

Use @intCast instead of @truncate on io_uring_enter() result


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

lib/std/os/linux/io_uring.zig+1-1
......@@ -212,7 +212,7 @@ pub const IO_Uring = struct {
212212 linux.EINTR => return error.SignalInterrupt,
213213 else => |errno| return os.unexpectedErrno(errno)
214214 }
215 return @truncate(u32, res);
215 return @intCast(u32, res);
216216 }
217217
218218 /// Sync internal state with kernel ring state on the SQ side.