[vlc-devel] [PATCH 16/22] vlc_variables: fix a cast warning in var_CountChoices()
Rémi Denis-Courmont
remi at remlab.net
Fri Jul 31 17:00:02 CEST 2015
Le 2015-07-31 17:55, Steve Lhomme a écrit :
> ---
> include/vlc_variables.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/vlc_variables.h b/include/vlc_variables.h
> index d855c30..4a4eedd 100644
> --- a/include/vlc_variables.h
> +++ b/include/vlc_variables.h
> @@ -592,7 +592,7 @@ static inline int var_CountChoices( vlc_object_t
> *p_obj, const char *psz_name )
> vlc_value_t count;
> if( var_Change( p_obj, psz_name, VLC_VAR_CHOICESCOUNT, &count,
> NULL ) )
> return 0;
> - return count.i_int;
> + return (int) count.i_int;
This (still) makes no sense.
> }
> #define var_CountChoices(a,b) var_CountChoices( VLC_OBJECT(a),b)
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list