fix lua stack corruption
This commit is contained in:
parent
d20a9c3faf
commit
8ebb40798b
|
@ -264,8 +264,8 @@ static int f_read_stderr(lua_State* L)
|
||||||
|
|
||||||
static int f_read(lua_State* L)
|
static int f_read(lua_State* L)
|
||||||
{
|
{
|
||||||
int stream = luaL_checknumber(L, 1);
|
int stream = luaL_checknumber(L, 2);
|
||||||
lua_remove(L, 1); // remove the number we just read
|
lua_remove(L, 2);
|
||||||
return g_read(L, stream);
|
return g_read(L, stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue