From 73517e86b02b47531bec189d4230e359274d8d04 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 11 Dec 2002 10:34:22 -0200 Subject: OP_TFORLOOP uses extra stack space --- ldebug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldebug.c') diff --git a/ldebug.c b/ldebug.c index 9f170c6b..bf58d0a8 100644 --- a/ldebug.c +++ b/ldebug.c @@ -1,5 +1,5 @@ /* -** $Id: ldebug.c,v 1.141 2002/12/04 17:38:31 roberto Exp roberto $ +** $Id: ldebug.c,v 1.142 2002/12/06 17:15:35 roberto Exp roberto $ ** Debug Interface ** See Copyright Notice in lua.h */ @@ -364,7 +364,7 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int reg) { break; } case OP_TFORLOOP: - checkreg(pt, a+2+c); + checkreg(pt, a+c+5); if (reg >= a) last = pc; /* affect all registers above base */ /* go through */ case OP_FORLOOP: -- cgit v1.2.3-55-g6feb