aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-12-06 15:15:35 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-12-06 15:15:35 -0200
commit9bd3fc10391ea6868c324d9d09a0fca4ef453015 (patch)
tree087c1a5a594219429e2c51c6b92ef2441e63af88
parentcc4a22ebe28c5d09566facde05840ddf42778eac (diff)
downloadlua-9bd3fc10391ea6868c324d9d09a0fca4ef453015.tar.gz
lua-9bd3fc10391ea6868c324d9d09a0fca4ef453015.tar.bz2
lua-9bd3fc10391ea6868c324d9d09a0fca4ef453015.zip
TFORLOOP makes a call that affects all values above it on the stack
-rw-r--r--ldebug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ldebug.c b/ldebug.c
index 8bb20f62..9f170c6b 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 1.140 2002/11/26 08:59:48 roberto Exp roberto $ 2** $Id: ldebug.c,v 1.141 2002/12/04 17:38:31 roberto Exp roberto $
3** Debug Interface 3** Debug Interface
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -365,6 +365,7 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int reg) {
365 } 365 }
366 case OP_TFORLOOP: 366 case OP_TFORLOOP:
367 checkreg(pt, a+2+c); 367 checkreg(pt, a+2+c);
368 if (reg >= a) last = pc; /* affect all registers above base */
368 /* go through */ 369 /* go through */
369 case OP_FORLOOP: 370 case OP_FORLOOP:
370 checkreg(pt, a+2); 371 checkreg(pt, a+2);