OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/vlc?expand=0&rev=a54032add2acf63dcb515e606a10f631
14 lines
543 B
Diff
14 lines
543 B
Diff
Index: vlc-3.0.2/modules/lua/libs/io.c
|
|
===================================================================
|
|
--- vlc-3.0.2.orig/modules/lua/libs/io.c
|
|
+++ vlc-3.0.2/modules/lua/libs/io.c
|
|
@@ -139,7 +139,7 @@ static int vlclua_io_file_seek( lua_Stat
|
|
const char* psz_mode = luaL_optstring( L, 2, NULL );
|
|
if ( psz_mode != NULL )
|
|
{
|
|
- long i_offset = luaL_optlong( L, 3, 0 );
|
|
+ long i_offset = (long) luaL_optinteger(L, 3, 0);
|
|
int i_mode;
|
|
if ( !strcmp( psz_mode, "set" ) )
|
|
i_mode = SEEK_SET;
|