summaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/ldebug.c b/ldebug.c
index 59c74731..82c636bf 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 1.112 2002/05/07 17:36:56 roberto Exp roberto $ 2** $Id: ldebug.c,v 1.113 2002/05/09 14:14:34 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*/
@@ -336,6 +336,9 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int reg) {
336 check(c < MAXSTACK && b < c); 336 check(c < MAXSTACK && b < c);
337 break; 337 break;
338 } 338 }
339 case OP_TFORLOOP:
340 checkreg(pt, a+2+c);
341 /* go through */
339 case OP_FORLOOP: 342 case OP_FORLOOP:
340 checkreg(pt, a+2); 343 checkreg(pt, a+2);
341 /* go through */ 344 /* go through */
@@ -347,11 +350,6 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int reg) {
347 pc += b; /* do the jump */ 350 pc += b; /* do the jump */
348 break; 351 break;
349 } 352 }
350 case OP_TFORLOOP: {
351 checkreg(pt, a+2+c);
352 check(pc+2 < pt->sizecode); /* check skip */
353 break;
354 }
355 case OP_CALL: { 353 case OP_CALL: {
356 if (b != 0) { 354 if (b != 0) {
357 checkreg(pt, a+b-1); 355 checkreg(pt, a+b-1);