diff options
-rw-r--r-- | src/lj_record.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_record.c b/src/lj_record.c index 62f5c066..cca636c7 100644 --- a/src/lj_record.c +++ b/src/lj_record.c | |||
@@ -571,7 +571,7 @@ static void rec_ret(jit_State *J, BCReg rbase, ptrdiff_t gotresults) | |||
571 | GCproto *pt = funcproto(frame_func(frame - (cbase+1))); | 571 | GCproto *pt = funcproto(frame_func(frame - (cbase+1))); |
572 | if (J->pt && frame == J->L->base - 1) { | 572 | if (J->pt && frame == J->L->base - 1) { |
573 | if (J->framedepth == 0 && check_downrec_unroll(J, pt)) { | 573 | if (J->framedepth == 0 && check_downrec_unroll(J, pt)) { |
574 | J->maxslot = rbase + nresults; | 574 | J->maxslot = (BCReg)(rbase + nresults); |
575 | rec_stop(J, J->curtrace); /* Down-recursion. */ | 575 | rec_stop(J, J->curtrace); /* Down-recursion. */ |
576 | return; | 576 | return; |
577 | } | 577 | } |