Commit 57603fd26d

Joran Dirk Greef <joran@ronomon.com>
2020-09-21 11:09:09
Use @intCast instead of @truncate on io_uring_enter() result
1 parent 575ed94
Changed files (1)
lib
std
os
lib/std/os/linux/io_uring.zig
@@ -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.