From 4b4bc7f8943ef6f6d73cfd73e441135e819d0cb1 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 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); } };