mirror of
https://github.com/zoriya/zig-wayland.git
synced 2026-06-09 04:55:51 +00:00
@ptrCast() T to ?*c_void not itself
This commit is contained in:
@@ -545,7 +545,7 @@ pub const EventLoop = opaque {
|
||||
loop,
|
||||
fd,
|
||||
mask,
|
||||
@ptrCast(fn (fd: c_int, mask: u32, data: T) callconv(.C) c_int, func),
|
||||
@ptrCast(fn (fd: c_int, mask: u32, data: ?*c_void) callconv(.C) c_int, func),
|
||||
data,
|
||||
) orelse error.AddFdFailed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user