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 7b572764..cecacd21 100644 --- a/src/lj_record.c +++ b/src/lj_record.c | |||
@@ -81,9 +81,9 @@ static void rec_check_slots(jit_State *J) | |||
81 | BCReg s, nslots = J->baseslot + J->maxslot; | 81 | BCReg s, nslots = J->baseslot + J->maxslot; |
82 | int32_t depth = 0; | 82 | int32_t depth = 0; |
83 | cTValue *base = J->L->base - J->baseslot; | 83 | cTValue *base = J->L->base - J->baseslot; |
84 | lua_assert(J->baseslot >= 1 && J->baseslot < LJ_MAX_JSLOTS); | 84 | lua_assert(J->baseslot >= 1); |
85 | lua_assert(J->baseslot == 1 || (J->slot[J->baseslot-1] & TREF_FRAME)); | 85 | lua_assert(J->baseslot == 1 || (J->slot[J->baseslot-1] & TREF_FRAME)); |
86 | lua_assert(nslots < LJ_MAX_JSLOTS); | 86 | lua_assert(nslots <= LJ_MAX_JSLOTS); |
87 | for (s = 0; s < nslots; s++) { | 87 | for (s = 0; s < nslots; s++) { |
88 | TRef tr = J->slot[s]; | 88 | TRef tr = J->slot[s]; |
89 | if (tr) { | 89 | if (tr) { |