From 978d4d0b7b64a39a30092e57b11c3b41eb44abc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Thu, 1 Jun 2023 16:57:50 -0400 Subject: [PATCH] Use cast instead of pointer math to fix Win32 build --- src/conio/sdl_con.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conio/sdl_con.c b/src/conio/sdl_con.c index 6d4b6ee1c7..3e921aec08 100644 --- a/src/conio/sdl_con.c +++ b/src/conio/sdl_con.c @@ -258,8 +258,8 @@ static int sdl_user_func_ret(int func, ...) while(1) { switch(func) { case SDL_USEREVENT_SETVIDMODE: - ev.user.data1 = NULL + va_arg(argptr, int); - ev.user.data2 = NULL + va_arg(argptr, int); + ev.user.data1 = (void *)va_arg(argptr, int); + ev.user.data2 = (void *)va_arg(argptr, int); while(sdl.PeepEvents(&ev, 1, SDL_ADDEVENT, SDL_FIRSTEVENT, SDL_LASTEVENT)!=1) YIELD(); break; -- GitLab