]> git.sesse.net Git - vlc/commitdiff
lua: add parenthesis as suggested by a gcc warning
authorRafaël Carré <rafael.carre@gmail.com>
Sun, 30 Aug 2009 18:55:41 +0000 (20:55 +0200)
committerRafaël Carré <rafael.carre@gmail.com>
Sun, 30 Aug 2009 19:28:22 +0000 (21:28 +0200)
modules/misc/lua/libs/variables.c

index c0b7765089dfa210199e09f2c01611b6c767c1af..ad5c4717c0c0e96bf62491743fb2e6c3bb15daf4 100644 (file)
@@ -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",