Commit 86ac0d4e authored by Rémi Duraffort's avatar Rémi Duraffort

lua: cosmetics (use the exact pointer typer not just void*).

parent f7345bf5
......@@ -201,7 +201,7 @@ static int vlclua_dialog_create( lua_State *L )
lua_setfield( L, -2, "__dialog" );
lua_pop( L, 1 );
extension_dialog_t **pp_dlg = lua_newuserdata( L, sizeof( void* ) );
extension_dialog_t **pp_dlg = lua_newuserdata( L, sizeof( extension_dialog_t* ) );
*pp_dlg = p_dlg;
if( luaL_newmetatable( L, "dialog" ) )
......@@ -577,7 +577,7 @@ end_of_args:
vlc_mutex_unlock( &p_dlg->lock );
/* Create meta table */
extension_widget_t **pp_widget = lua_newuserdata( L, sizeof( void* ) );
extension_widget_t **pp_widget = lua_newuserdata( L, sizeof( extension_widget_t* ) );
*pp_widget = p_widget;
if( luaL_newmetatable( L, "widget" ) )
{
......
......@@ -246,7 +246,7 @@ static int vlclua_input_item_delete( lua_State *L )
static int vlclua_input_item_get( lua_State *L, input_item_t *p_item )
{
vlc_gc_incref( p_item );
input_item_t **pp = lua_newuserdata( L, sizeof( void* ) );
input_item_t **pp = lua_newuserdata( L, sizeof( input_item_t* ) );
*pp = p_item;
if( luaL_newmetatable( L, "input_item" ) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment