Fix recording of JLOOP with higher maxslot.

This commit is contained in:
Mike Pall 2011-04-10 18:00:08 +02:00
parent f69524f7f1
commit d85b7e636e

View File

@ -483,7 +483,7 @@ static LoopEvent rec_iterl(jit_State *J, const BCIns iterins)
/* Record LOOP/JLOOP. Now, that was easy. */
static LoopEvent rec_loop(jit_State *J, BCReg ra)
{
J->maxslot = ra;
if (ra < J->maxslot) J->maxslot = ra;
J->pc++;
return LOOPEV_ENTER;
}