diff options
-rw-r--r-- | src/lj_record.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_record.c b/src/lj_record.c index 9d0469c4..c2d02745 100644 --- a/src/lj_record.c +++ b/src/lj_record.c | |||
@@ -87,9 +87,9 @@ static void rec_check_slots(jit_State *J) | |||
87 | BCReg s, nslots = J->baseslot + J->maxslot; | 87 | BCReg s, nslots = J->baseslot + J->maxslot; |
88 | int32_t depth = 0; | 88 | int32_t depth = 0; |
89 | cTValue *base = J->L->base - J->baseslot; | 89 | cTValue *base = J->L->base - J->baseslot; |
90 | lua_assert(J->baseslot >= 1+LJ_FR2 && J->baseslot < LJ_MAX_JSLOTS); | 90 | lua_assert(J->baseslot >= 1+LJ_FR2); |
91 | lua_assert(J->baseslot == 1+LJ_FR2 || (J->slot[J->baseslot-1] & TREF_FRAME)); | 91 | lua_assert(J->baseslot == 1+LJ_FR2 || (J->slot[J->baseslot-1] & TREF_FRAME)); |
92 | lua_assert(nslots < LJ_MAX_JSLOTS); | 92 | lua_assert(nslots <= LJ_MAX_JSLOTS); |
93 | for (s = 0; s < nslots; s++) { | 93 | for (s = 0; s < nslots; s++) { |
94 | TRef tr = J->slot[s]; | 94 | TRef tr = J->slot[s]; |
95 | if (tr) { | 95 | if (tr) { |