From 7ae5d8d406713782be4c3c5d4d0c0cb0754c7fbc Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Thu, 6 Oct 2022 01:15:49 +0200 Subject: [PATCH] testmessage: fix conversion from `intptr_t` to `Uint32` Emitted by MSVC --- test/testmessage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testmessage.c b/test/testmessage.c index 5dd0155f7..c30c18df4 100644 --- a/test/testmessage.c +++ b/test/testmessage.c @@ -62,7 +62,7 @@ button_messagebox(void *eventNumber) SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Error Presenting MessageBox: %s\n", SDL_GetError()); if (eventNumber) { SDL_Event event; - event.type = (intptr_t)eventNumber; + event.type = (Uint32)(intptr_t)eventNumber; SDL_PushEvent(&event); return 1; } else { @@ -73,7 +73,7 @@ button_messagebox(void *eventNumber) if (eventNumber) { SDL_Event event; - event.type = (intptr_t)eventNumber; + event.type = (Uint32)(intptr_t)eventNumber; SDL_PushEvent(&event); }