Run zig fmt

>> Zig master changed `c_void` to `anyopaque`, and zig fmt helps to change code as appropriate
This commit is contained in:
InKryption 2021-12-19 19:37:09 +01:00 committed by Stephen Gutekanst
parent c279e0c794
commit f8e14dabc6
2 changed files with 4 additions and 4 deletions

View file

@ -314,7 +314,7 @@ pub inline fn getGUID(self: Joystick) error{PlatformError}!?[:0]const u8 {
/// see also: joystick_userptr, glfw.Joystick.getUserPointer
pub inline fn setUserPointer(self: Joystick, comptime T: type, pointer: *T) void {
internal_debug.assertInitialized();
c.glfwSetJoystickUserPointer(@enumToInt(self.jid), @ptrCast(*c_void, pointer));
c.glfwSetJoystickUserPointer(@enumToInt(self.jid), @ptrCast(*anyopaque, pointer));
getError() catch |err| return switch (err) {
Error.NotInitialized => unreachable,
else => unreachable,