From fb45fe256fb69e25433a0f4c5eb52502f68587a3 Mon Sep 17 00:00:00 2001 From: Nathan McRae Date: Tue, 14 Jan 2025 20:42:51 -0800 Subject: [PATCH] update to latest zig --- src/main.zig | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main.zig b/src/main.zig index 6702b35..8d404fc 100644 --- a/src/main.zig +++ b/src/main.zig @@ -24,10 +24,7 @@ pub fn main() !void { defer c.SDL_DestroyRenderer(renderer); const zig_bmp = @embedFile("zig.bmp"); - const rw = c.SDL_RWFromConstMem( - @ptrCast(*const c_void, &zig_bmp[0]), - @intCast(c_int, zig_bmp.len), - ) orelse { + const rw = c.SDL_RWFromConstMem(zig_bmp, zig_bmp.len) orelse { c.SDL_Log("Unable to get RWFromConstMem: %s", c.SDL_GetError()); return error.SDLInitializationFailed; };