summaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-04-09 16:47:44 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-04-09 16:47:44 -0300
commit7b65328c8e89ecc999e47d00288bfa4cf6692cdc (patch)
tree4bff202763e7389ca40a44003703376d32eeaf78 /ldebug.c
parentd2e05589d738c3a1b563879435d5cc0830719fd1 (diff)
downloadlua-7b65328c8e89ecc999e47d00288bfa4cf6692cdc.tar.gz
lua-7b65328c8e89ecc999e47d00288bfa4cf6692cdc.tar.bz2
lua-7b65328c8e89ecc999e47d00288bfa4cf6692cdc.zip
new semantics for `generic for' (with state)
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ldebug.c b/ldebug.c
index e69afafd..eb282db7 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 1.105 2002/03/25 17:47:14 roberto Exp roberto $ 2** $Id: ldebug.c,v 1.106 2002/04/04 17:21: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*/
@@ -347,8 +347,7 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int reg) {
347 break; 347 break;
348 } 348 }
349 case OP_TFORLOOP: { 349 case OP_TFORLOOP: {
350 checkreg(pt, a+c); 350 checkreg(pt, a+2+c);
351 checkreg(pt, a+2); /* at least 2 for table generators */
352 check(pc+2 < pt->sizecode); /* check skip */ 351 check(pc+2 < pt->sizecode); /* check skip */
353 break; 352 break;
354 } 353 }