mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
TFORLOOP makes a call that affects all values above it on the stack
This commit is contained in:
parent
cc4a22ebe2
commit
9bd3fc1039
1 changed files with 2 additions and 1 deletions
3
ldebug.c
3
ldebug.c
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: ldebug.c,v 1.140 2002/11/26 08:59:48 roberto Exp roberto $
|
||||
** $Id: ldebug.c,v 1.141 2002/12/04 17:38:31 roberto Exp roberto $
|
||||
** Debug Interface
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -365,6 +365,7 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int reg) {
|
|||
}
|
||||
case OP_TFORLOOP:
|
||||
checkreg(pt, a+2+c);
|
||||
if (reg >= a) last = pc; /* affect all registers above base */
|
||||
/* go through */
|
||||
case OP_FORLOOP:
|
||||
checkreg(pt, a+2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue