From 7c2028f8e9cf96f8e246255c0998780f9b323c03 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 29 Jun 2018 16:56:11 -0400 Subject: [PATCH] Attempt to fix "cast from pointer to integer of different size" warnings. --- src/video/windows/SDL_windowsmessagebox.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/video/windows/SDL_windowsmessagebox.c b/src/video/windows/SDL_windowsmessagebox.c index 7050f1231..9ddb9e22f 100644 --- a/src/video/windows/SDL_windowsmessagebox.c +++ b/src/video/windows/SDL_windowsmessagebox.c @@ -576,13 +576,13 @@ WIN_ShowOldMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid) switch (messageboxdata->flags) { case SDL_MESSAGEBOX_ERROR: - icon = (Uint16)IDI_ERROR; + icon = (Uint16)(size_t)IDI_ERROR; break; case SDL_MESSAGEBOX_WARNING: - icon = (Uint16)IDI_WARNING; + icon = (Uint16)(size_t)IDI_WARNING; break; case SDL_MESSAGEBOX_INFORMATION: - icon = (Uint16)IDI_INFORMATION; + icon = (Uint16)(size_t)IDI_INFORMATION; break; }