aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-06-28 10:01:31 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-06-28 10:01:31 -0300
commit69cc0a12fe54c1ecf69b2c7db3f5d8ea7d530dca (patch)
tree2eea6a5b2dfea22863c3b270ed751f06056e9c6f
parent2f0955b99b2f94f846d0e39fa32acb758fb3556f (diff)
downloadlua-69cc0a12fe54c1ecf69b2c7db3f5d8ea7d530dca.tar.gz
lua-69cc0a12fe54c1ecf69b2c7db3f5d8ea7d530dca.tar.bz2
lua-69cc0a12fe54c1ecf69b2c7db3f5d8ea7d530dca.zip
small bug
-rw-r--r--ldebug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ldebug.c b/ldebug.c
index cc14486b..b53e4969 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 2.22 2005/06/13 14:15:54 roberto Exp roberto $ 2** $Id: ldebug.c,v 2.23 2005/06/13 14:39:19 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*/
@@ -392,8 +392,8 @@ static Instruction symbexec (const Proto *pt, int lastpc, int reg) {
392 } 392 }
393 case OP_TFORLOOP: { 393 case OP_TFORLOOP: {
394 check(c >= 1); /* at least one result (control variable) */ 394 check(c >= 1); /* at least one result (control variable) */
395 checkreg(pt, a+3+c); /* space for results */ 395 checkreg(pt, a+2+c); /* space for results */
396 if (reg >= a+3) last = pc; /* affect all regs above its call base */ 396 if (reg >= a+2) last = pc; /* affect all regs above its base */
397 break; 397 break;
398 } 398 }
399 case OP_FORLOOP: 399 case OP_FORLOOP: