From 5b9d3d0960789d6fb80eb29eaa21c102bd60ad4b Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Fri, 21 Oct 2022 05:13:12 -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 3d3328a..8bff49b 100644 --- a/src/platform.zig +++ b/src/platform.zig @@ -246,7 +246,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); } };