From 6d268b0b00ae63e5d06aedc4fb3cec105123a565 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 13 May 2003 17:15:59 -0300 Subject: new semantics for "for" local variables --- ldebug.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ldebug.c') diff --git a/ldebug.c b/ldebug.c index 468c2358..d42b161a 100644 --- a/ldebug.c +++ b/ldebug.c @@ -1,5 +1,5 @@ /* -** $Id: ldebug.c,v 1.150 2003/03/19 21:24:04 roberto Exp roberto $ +** $Id: ldebug.c,v 1.151 2003/04/28 13:31:06 roberto Exp roberto $ ** Debug Interface ** See Copyright Notice in lua.h */ @@ -374,10 +374,11 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int reg) { break; } case OP_TFORLOOP: - checkreg(pt, a+c+5); + checkreg(pt, a+5); if (reg >= a) last = pc; /* affect all registers above base */ /* go through */ case OP_FORLOOP: + case OP_FORPREP: checkreg(pt, a+2); /* go through */ case OP_JMP: { -- cgit v1.2.3-55-g6feb