Explorar o código

Fix recording of JLOOP with higher maxslot.

Mike Pall %!s(int64=14) %!d(string=hai) anos
pai
achega
d85b7e636e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/lj_record.c

+ 1 - 1
src/lj_record.c

@@ -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;
 }