소스 검색

Fix recording of JLOOP with higher maxslot.

Mike Pall 14 년 전
부모
커밋
d85b7e636e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
 }