diff --git a/test/testmessage.c b/test/testmessage.c index 2b8e39439..e81bcda02 100644 --- a/test/testmessage.c +++ b/test/testmessage.c @@ -183,7 +183,7 @@ int main(int argc, char *argv[]) int status = 0; SDL_Event event; Uint32 eventNumber = SDL_RegisterEvents(1); - SDL_Thread *thread = SDL_CreateThread(&button_messagebox, "MessageBox", (void *)eventNumber); + SDL_Thread *thread = SDL_CreateThread(&button_messagebox, "MessageBox", (void *)(uintptr_t)eventNumber); while (SDL_WaitEvent(&event)) { if (event.type == eventNumber) {