mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 08:14:48 +00:00
Use @intCast instead of @truncate on io_uring_enter() result
This commit is contained in:
parent
575ed941d7
commit
57603fd26d
@ -212,7 +212,7 @@ pub const IO_Uring = struct {
|
||||
linux.EINTR => return error.SignalInterrupt,
|
||||
else => |errno| return os.unexpectedErrno(errno)
|
||||
}
|
||||
return @truncate(u32, res);
|
||||
return @intCast(u32, res);
|
||||
}
|
||||
|
||||
/// Sync internal state with kernel ring state on the SQ side.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user