Attempt to fix "cast from pointer to integer of different size" warnings.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 29 Jun 2018 16:56:11 -0400
changeset 1204223bc0cb86dc6
parent 12041 f34f7903df97
child 12043 1f25a59acc73
Attempt to fix "cast from pointer to integer of different size" warnings.
src/video/windows/SDL_windowsmessagebox.c
     1.1 --- a/src/video/windows/SDL_windowsmessagebox.c	Fri Jun 29 16:55:55 2018 -0400
     1.2 +++ b/src/video/windows/SDL_windowsmessagebox.c	Fri Jun 29 16:56:11 2018 -0400
     1.3 @@ -576,13 +576,13 @@
     1.4  
     1.5      switch (messageboxdata->flags) {
     1.6      case SDL_MESSAGEBOX_ERROR:
     1.7 -        icon = (Uint16)IDI_ERROR;
     1.8 +        icon = (Uint16)(size_t)IDI_ERROR;
     1.9          break;
    1.10      case SDL_MESSAGEBOX_WARNING:
    1.11 -        icon = (Uint16)IDI_WARNING;
    1.12 +        icon = (Uint16)(size_t)IDI_WARNING;
    1.13          break;
    1.14      case SDL_MESSAGEBOX_INFORMATION:
    1.15 -        icon = (Uint16)IDI_INFORMATION;
    1.16 +        icon = (Uint16)(size_t)IDI_INFORMATION;
    1.17          break;
    1.18      }
    1.19