We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e10f9f commit 3af5eefCopy full SHA for 3af5eef
src/script/cpp_api/s_security.cpp
@@ -577,13 +577,13 @@ int ScriptApiSecurity::sl_io_lines(lua_State *L)
577
CHECK_SECURE_PATH(L, path);
578
}
579
580
+ int top_precall = lua_gettop(L);
581
push_original(L, "io", "lines");
582
lua_pushvalue(L, 1);
- int top_precall = lua_gettop(L);
583
lua_call(L, 1, LUA_MULTRET);
584
// Return number of arguments returned by the function,
585
// adjusting for the function being poped.
586
- return lua_gettop(L) - (top_precall - 1);
+ return lua_gettop(L) - top_precall;
587
588
589
0 commit comments