From 01ebf5419c0c1ff3a3f532069cb318010a1f6b05 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Tue, 25 Jun 2024 15:11:44 +0200 Subject: [PATCH] Casting from void* to a smaller-sized integer needs an intermediate equally-sized integer --- ISLE/isleapp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ISLE/isleapp.cpp b/ISLE/isleapp.cpp index d70878ed..b6c62300 100644 --- a/ISLE/isleapp.cpp +++ b/ISLE/isleapp.cpp @@ -385,10 +385,11 @@ int SDL_AppEvent(void* appstate, const SDL_Event* event) break; } + // FIXME: use g_userEvent instead of SDL_EVENT_USER if (event->type >= SDL_EVENT_USER && event->type <= SDL_EVENT_LAST - 1) { switch (event->user.code) { case WM_ISLE_SETCURSOR: - g_isle->SetupCursor((Cursor) (MxS32) event->user.data1); + g_isle->SetupCursor((Cursor) (uintptr_t) event->user.data1); break; } }