mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix assertion in rec_check_slots.
This commit is contained in:
parent
e807d46931
commit
e38fbb3d0a
@ -96,7 +96,7 @@ static void rec_check_ir(jit_State *J)
|
|||||||
static void rec_check_slots(jit_State *J)
|
static void rec_check_slots(jit_State *J)
|
||||||
{
|
{
|
||||||
BCReg s, nslots = J->baseslot + J->maxslot;
|
BCReg s, nslots = J->baseslot + J->maxslot;
|
||||||
int32_t depth;
|
int32_t depth = 0;
|
||||||
cTValue *base = J->L->base - J->baseslot;
|
cTValue *base = J->L->base - J->baseslot;
|
||||||
lua_assert(J->baseslot >= 1 && J->baseslot < LJ_MAX_JSLOTS);
|
lua_assert(J->baseslot >= 1 && J->baseslot < LJ_MAX_JSLOTS);
|
||||||
lua_assert(J->baseslot == 1 || (J->slot[J->baseslot-1] & TREF_FRAME));
|
lua_assert(J->baseslot == 1 || (J->slot[J->baseslot-1] & TREF_FRAME));
|
||||||
|
Loading…
Reference in New Issue
Block a user