mirror of
https://github.com/lua/lua.git
synced 2026-06-08 08:03:49 +00:00
Adjustment in useless parameter L in macros luai_num*
This commit is contained in:
6
lvm.c
6
lvm.c
@@ -268,9 +268,9 @@ static int forprep (lua_State *L, StkId ra) {
|
||||
/*
|
||||
** Execute a step of a float numerical for loop, returning
|
||||
** true iff the loop must continue. (The integer case is
|
||||
** written online with opcode OP_FORLOOP, for performance.)
|
||||
** written inline with opcode OP_FORLOOP, for performance.)
|
||||
*/
|
||||
static int floatforloop (StkId ra) {
|
||||
static int floatforloop (lua_State *L, StkId ra) {
|
||||
lua_Number step = fltvalue(s2v(ra + 1));
|
||||
lua_Number limit = fltvalue(s2v(ra));
|
||||
lua_Number idx = fltvalue(s2v(ra + 2)); /* control variable */
|
||||
@@ -1841,7 +1841,7 @@ void luaV_execute (lua_State *L, CallInfo *ci) {
|
||||
pc -= GETARG_Bx(i); /* jump back */
|
||||
}
|
||||
}
|
||||
else if (floatforloop(ra)) /* float loop */
|
||||
else if (floatforloop(L, ra)) /* float loop */
|
||||
pc -= GETARG_Bx(i); /* jump back */
|
||||
updatetrap(ci); /* allows a signal to break the loop */
|
||||
vmbreak;
|
||||
|
||||
Reference in New Issue
Block a user