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

This commit is contained in:
Joran Dirk Greef 2020-09-21 11:09:09 +02:00
parent 575ed941d7
commit 57603fd26d

View File

@ -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.