Commit f3b32f6f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix pointer-int casts warnings

parent 9f279d64
...@@ -283,7 +283,7 @@ void input_ControlVarNavigation( input_thread_t *p_input ) ...@@ -283,7 +283,7 @@ void input_ControlVarNavigation( input_thread_t *p_input )
var_Create( p_input, val.psz_string, var_Create( p_input, val.psz_string,
VLC_VAR_INTEGER|VLC_VAR_HASCHOICE|VLC_VAR_ISCOMMAND ); VLC_VAR_INTEGER|VLC_VAR_HASCHOICE|VLC_VAR_ISCOMMAND );
var_AddCallback( p_input, val.psz_string, var_AddCallback( p_input, val.psz_string,
NavigationCallback, (void *)i ); NavigationCallback, (void *)(intptr_t)i );
if( p_input->p->title[i]->psz_name == NULL || if( p_input->p->title[i]->psz_name == NULL ||
*p_input->p->title[i]->psz_name == '\0' ) *p_input->p->title[i]->psz_name == '\0' )
...@@ -667,7 +667,7 @@ static int NavigationCallback( vlc_object_t *p_this, char const *psz_cmd, ...@@ -667,7 +667,7 @@ static int NavigationCallback( vlc_object_t *p_this, char const *psz_cmd,
(void)psz_cmd; (void)oldval; (void)psz_cmd; (void)oldval;
/* Issue a title change */ /* Issue a title change */
val.i_int = (int)p_data; val.i_int = (intptr_t)p_data;
input_ControlPush( p_input, INPUT_CONTROL_SET_TITLE, &val ); input_ControlPush( p_input, INPUT_CONTROL_SET_TITLE, &val );
var_Change( p_input, "title", VLC_VAR_SETVALUE, &val, NULL ); var_Change( p_input, "title", VLC_VAR_SETVALUE, &val, NULL );
......
...@@ -78,7 +78,7 @@ int vlc_module_set (module_t *module, int propid, void *value) ...@@ -78,7 +78,7 @@ int vlc_module_set (module_t *module, int propid, void *value)
{ {
case VLC_MODULE_CPU_REQUIREMENT: case VLC_MODULE_CPU_REQUIREMENT:
assert (!module->b_submodule); assert (!module->b_submodule);
module->i_cpu |= (int)value; module->i_cpu |= (intptr_t)value;
break; break;
case VLC_MODULE_SHORTCUT: case VLC_MODULE_SHORTCUT:
...@@ -109,7 +109,7 @@ int vlc_module_set (module_t *module, int propid, void *value) ...@@ -109,7 +109,7 @@ int vlc_module_set (module_t *module, int propid, void *value)
break; break;
case VLC_MODULE_SCORE: case VLC_MODULE_SCORE:
module->i_score = (int)value; module->i_score = (intptr_t)value;
break; break;
case VLC_MODULE_PROGRAM: case VLC_MODULE_PROGRAM:
......
...@@ -98,7 +98,7 @@ void *vout_RequestWindow( vout_thread_t *p_vout, ...@@ -98,7 +98,7 @@ void *vout_RequestWindow( vout_thread_t *p_vout,
/* Check whether someone provided us with a window ID */ /* Check whether someone provided us with a window ID */
var_Get( p_vout->p_libvlc, "drawable", &val ); var_Get( p_vout->p_libvlc, "drawable", &val );
if( val.i_int ) return (void *)val.i_int; if( val.i_int ) return (void *)(intptr_t)val.i_int;
/* Find if the main interface supports embedding */ /* Find if the main interface supports embedding */
p_list = vlc_list_find( p_vout, VLC_OBJECT_INTF, FIND_ANYWHERE ); p_list = vlc_list_find( p_vout, VLC_OBJECT_INTF, FIND_ANYWHERE );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment