[vlc-devel] commit: lua: add parenthesis as suggested by a gcc warning ( Rafaël Carré )
git version control
git at videolan.org
Sun Aug 30 21:28:29 CEST 2009
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Sun Aug 30 20:55:41 2009 +0200| [431798eb70dea92b09f1e134dd0aeef765642974] | committer: Rafaël Carré
lua: add parenthesis as suggested by a gcc warning
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=431798eb70dea92b09f1e134dd0aeef765642974
---
modules/misc/lua/libs/variables.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/misc/lua/libs/variables.c b/modules/misc/lua/libs/variables.c
index c0b7765..ad5c471 100644
--- a/modules/misc/lua/libs/variables.c
+++ b/modules/misc/lua/libs/variables.c
@@ -238,7 +238,7 @@ static int vlclua_libvlc_command( lua_State *L )
val_arg.psz_string = strdup( luaL_optstring( L, 2, "" ) );
lua_pop( L, 2 );
int i_type = var_Type( p_this->p_libvlc, psz_cmd );
- if( ! i_type & VLC_VAR_ISCOMMAND )
+ if( ! (i_type & VLC_VAR_ISCOMMAND) )
{
free( val_arg.psz_string );
return luaL_error( L, "libvlc's \"%s\" is not a command",
More information about the vlc-devel
mailing list