From c5e37a21da3142d3ffbc03535de9d559566b946d Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Fri, 23 Sep 2022 04:55:11 -0300 Subject: [PATCH] chore: remove unnecessary ptr cast --- src/platform.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform.zig b/src/platform.zig index 4bc348b..192f53a 100644 --- a/src/platform.zig +++ b/src/platform.zig @@ -244,7 +244,7 @@ pub const Gui = struct { fn glGetProcAddress(ctx: SDL.SDL_GLContext, proc: [:0]const u8) ?*anyopaque { _ = ctx; - return SDL.SDL_GL_GetProcAddress(@ptrCast([*c]const u8, proc)); + return SDL.SDL_GL_GetProcAddress(proc.ptr); } };