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 c0b7765..ad5c471 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",