Casting from void* to a smaller-sized integer needs an intermediate equally-sized integer

This commit is contained in:
Anonymous Maarten 2024-06-25 15:11:44 +02:00
parent c7a4e6b2b1
commit d5135f997f

View File

@ -385,10 +385,11 @@ int SDL_AppEvent(void* appstate, const SDL_Event* event)
break; break;
} }
// FIXME: use g_userEvent instead of SDL_EVENT_USER
if (event->type >= SDL_EVENT_USER && event->type <= SDL_EVENT_LAST - 1) { if (event->type >= SDL_EVENT_USER && event->type <= SDL_EVENT_LAST - 1) {
switch (event->user.code) { switch (event->user.code) {
case WM_ISLE_SETCURSOR: case WM_ISLE_SETCURSOR:
g_isle->SetupCursor((Cursor) (MxS32) event->user.data1); g_isle->SetupCursor((Cursor) (uintptr_t) event->user.data1);
break; break;
} }
} }