mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
@ptrCast fds.ptr to *const c_void for io_uring_register()
This commit is contained in:
parent
8b030a6599
commit
ee5931908e
@ -526,7 +526,7 @@ pub const IO_Uring = struct {
|
||||
const res = linux.io_uring_register(
|
||||
self.fd,
|
||||
.REGISTER_FILES,
|
||||
fds.ptr,
|
||||
@ptrCast(*const c_void, fds.ptr),
|
||||
@truncate(u32, fds.len)
|
||||
);
|
||||
try check_errno(res);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user