Commit ee5931908e

Joran Dirk Greef <joran@ronomon.com>
2020-09-19 13:25:43
@ptrCast fds.ptr to *const c_void for io_uring_register()
1 parent 8b030a6
Changed files (1)
lib
lib/std/io_uring.zig
@@ -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);