]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Fix recording of JLOOP with higher maxslot.
authorMike Pall <mike>
Sun, 10 Apr 2011 16:00:08 +0000 (18:00 +0200)
committerMike Pall <mike>
Sun, 10 Apr 2011 16:00:08 +0000 (18:00 +0200)
src/lj_record.c

index 15152b96f56f784b76f2b075c32b7602a2fa71fe..c89c51be0560015ada050f1a532db703050db128 100644 (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;
 }