From 7b65328c8e89ecc999e47d00288bfa4cf6692cdc Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 9 Apr 2002 16:47:44 -0300 Subject: new semantics for `generic for' (with state) --- ldebug.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ldebug.c') diff --git a/ldebug.c b/ldebug.c index e69afafd..eb282db7 100644 --- a/ldebug.c +++ b/ldebug.c @@ -1,5 +1,5 @@ /* -** $Id: ldebug.c,v 1.105 2002/03/25 17:47:14 roberto Exp roberto $ +** $Id: ldebug.c,v 1.106 2002/04/04 17:21:31 roberto Exp roberto $ ** Debug Interface ** See Copyright Notice in lua.h */ @@ -347,8 +347,7 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int reg) { break; } case OP_TFORLOOP: { - checkreg(pt, a+c); - checkreg(pt, a+2); /* at least 2 for table generators */ + checkreg(pt, a+2+c); check(pc+2 < pt->sizecode); /* check skip */ break; } -- cgit v1.2.3-55-g6feb