[vlc-commits] lua: remove bogus down-cast (refs #17285)

Rémi Denis-Courmont git at videolan.org
Sun Aug 14 16:19:25 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Aug 14 17:10:07 2016 +0300| [0fa357b2c0e9892f775133e83d6f830fdf9ab73f] | committer: Rémi Denis-Courmont

lua: remove bogus down-cast (refs #17285)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0fa357b2c0e9892f775133e83d6f830fdf9ab73f
---

 modules/lua/libs/variables.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/lua/libs/variables.c b/modules/lua/libs/variables.c
index f79fc0b..ad8ba6d 100644
--- a/modules/lua/libs/variables.c
+++ b/modules/lua/libs/variables.c
@@ -98,7 +98,7 @@ static int vlclua_tovalue( lua_State *L, int i_type, vlc_value_t *val )
             val->b_bool = luaL_checkboolean( L, -1 );
             break;
         case VLC_VAR_INTEGER:
-            val->i_int = (int)luaL_checkinteger( L, -1 );
+            val->i_int = luaL_checkinteger( L, -1 );
             break;
         case VLC_VAR_STRING:
             val->psz_string = (char*)luaL_checkstring( L, -1 ); /* XXX: Beware, this only stays valid as long as (L,-1) stays in the stack */



More information about the vlc-commits mailing list