Skip to content

Commit

Permalink
Attempt to fix "cast from pointer to integer of different size" warni…
Browse files Browse the repository at this point in the history
…ngs.
  • Loading branch information
icculus committed Jun 29, 2018
1 parent 52857de commit 7c2028f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/video/windows/SDL_windowsmessagebox.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7c2028f

Please sign in to comment.