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 60caf10d..f98b0a4c 100644 --- a/src/lj_record.c +++ b/src/lj_record.c | |||
@@ -2131,7 +2131,7 @@ static const BCIns *rec_setup_root(jit_State *J) | |||
2131 | case BC_RET0: | 2131 | case BC_RET0: |
2132 | case BC_RET1: | 2132 | case BC_RET1: |
2133 | /* No bytecode range check for down-recursive root traces. */ | 2133 | /* No bytecode range check for down-recursive root traces. */ |
2134 | J->maxslot = ra + bc_d(ins); | 2134 | J->maxslot = ra + bc_d(ins) - 1; |
2135 | break; | 2135 | break; |
2136 | case BC_FUNCF: | 2136 | case BC_FUNCF: |
2137 | /* No bytecode range check for root traces started by a hot call. */ | 2137 | /* No bytecode range check for root traces started by a hot call. */ |