| ... | ... | @@ -404,7 +404,7 @@ pub const IO_Uring = struct { |
| 404 | 404 | sqe.fd = fd; |
| 405 | 405 | sqe.off = offset; |
| 406 | 406 | sqe.addr = @ptrToInt(buffer.ptr); |
| 407 | | sqe.len = @truncate(u32, buffer.len); |
| 407 | sqe.len = @intCast(u32, buffer.len); |
| 408 | 408 | sqe.user_data = user_data; |
| 409 | 409 | return sqe; |
| 410 | 410 | } |
| ... | ... | @@ -423,7 +423,7 @@ pub const IO_Uring = struct { |
| 423 | 423 | sqe.fd = fd; |
| 424 | 424 | sqe.off = offset; |
| 425 | 425 | sqe.addr = @ptrToInt(buffer.ptr); |
| 426 | | sqe.len = @truncate(u32, buffer.len); |
| 426 | sqe.len = @intCast(u32, buffer.len); |
| 427 | 427 | sqe.user_data = user_data; |
| 428 | 428 | return sqe; |
| 429 | 429 | } |
| ... | ... | @@ -444,7 +444,7 @@ pub const IO_Uring = struct { |
| 444 | 444 | sqe.fd = fd; |
| 445 | 445 | sqe.off = offset; |
| 446 | 446 | sqe.addr = @ptrToInt(iovecs.ptr); |
| 447 | | sqe.len = @truncate(u32, iovecs.len); |
| 447 | sqe.len = @intCast(u32, iovecs.len); |
| 448 | 448 | sqe.user_data = user_data; |
| 449 | 449 | return sqe; |
| 450 | 450 | } |
| ... | ... | @@ -465,7 +465,7 @@ pub const IO_Uring = struct { |
| 465 | 465 | sqe.fd = fd; |
| 466 | 466 | sqe.off = offset; |
| 467 | 467 | sqe.addr = @ptrToInt(iovecs.ptr); |
| 468 | | sqe.len = @truncate(u32, iovecs.len); |
| 468 | sqe.len = @intCast(u32, iovecs.len); |
| 469 | 469 | sqe.user_data = user_data; |
| 470 | 470 | return sqe; |
| 471 | 471 | } |
| ... | ... | @@ -516,7 +516,7 @@ pub const IO_Uring = struct { |
| 516 | 516 | self.fd, |
| 517 | 517 | .REGISTER_FILES, |
| 518 | 518 | @ptrCast(*const c_void, fds.ptr), |
| 519 | | @truncate(u32, fds.len) |
| 519 | @intCast(u32, fds.len) |
| 520 | 520 | ); |
| 521 | 521 | switch (linux.getErrno(res)) { |
| 522 | 522 | 0 => {}, |