Mercurial > mplayer.hg
diff mplayer.c @ 36762:e788bcd9d49b
Avoid many pointer cast warnings.
Fixes most occurrences of
"cast from pointer to integer of different size"
and
"cast to pointer from integer of different size"
warnings.
author | reimar |
---|---|
date | Sun, 16 Feb 2014 15:44:36 +0000 |
parents | e3d879a5f1cf |
children | b4ccac0a65d5 |
line wrap: on
line diff
--- a/mplayer.c Sun Feb 16 15:44:34 2014 +0000 +++ b/mplayer.c Sun Feb 16 15:44:36 2014 +0000 @@ -3061,7 +3061,7 @@ if (use_gui) { guiInit(); gui(GUI_SET_CONTEXT, mpctx); - gui(GUI_SET_STATE, (void *)(filename ? GUI_PLAY : GUI_STOP)); + gui(GUI_SET_STATE, (void *)(intptr_t)(filename ? GUI_PLAY : GUI_STOP)); } #endif @@ -3103,7 +3103,7 @@ if (cmd->id == MP_CMD_GUI) gui(GUI_RUN_MESSAGE, cmd->args[0].v.s); else - gui(GUI_RUN_COMMAND, (void *)cmd->id); + gui(GUI_RUN_COMMAND, (void *)(intptr_t)cmd->id); mp_cmd_free(cmd); } }