summaryrefslogtreecommitdiff
path: root/src/lj_record.c
diff options
context:
space:
mode:
authorMike Pall <mike>2010-03-07 14:32:50 +0100
committerMike Pall <mike>2010-03-07 14:32:50 +0100
commite38fbb3d0a6125440a8100d7f660903e78bc1154 (patch)
treecf283cd67b94d35bec95f5c44564c89c912f75a2 /src/lj_record.c
parente807d4693151ee24a7790748632fd17021bde70f (diff)
downloadluajit-e38fbb3d0a6125440a8100d7f660903e78bc1154.tar.gz
luajit-e38fbb3d0a6125440a8100d7f660903e78bc1154.tar.bz2
luajit-e38fbb3d0a6125440a8100d7f660903e78bc1154.zip
Fix assertion in rec_check_slots.
Diffstat (limited to 'src/lj_record.c')
-rw-r--r--src/lj_record.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_record.c b/src/lj_record.c
index cca636c7..d0cad539 100644
--- a/src/lj_record.c
+++ b/src/lj_record.c
@@ -96,7 +96,7 @@ static void rec_check_ir(jit_State *J)
96static void rec_check_slots(jit_State *J) 96static void rec_check_slots(jit_State *J)
97{ 97{
98 BCReg s, nslots = J->baseslot + J->maxslot; 98 BCReg s, nslots = J->baseslot + J->maxslot;
99 int32_t depth; 99 int32_t depth = 0;
100 cTValue *base = J->L->base - J->baseslot; 100 cTValue *base = J->L->base - J->baseslot;
101 lua_assert(J->baseslot >= 1 && J->baseslot < LJ_MAX_JSLOTS); 101 lua_assert(J->baseslot >= 1 && J->baseslot < LJ_MAX_JSLOTS);
102 lua_assert(J->baseslot == 1 || (J->slot[J->baseslot-1] & TREF_FRAME)); 102 lua_assert(J->baseslot == 1 || (J->slot[J->baseslot-1] & TREF_FRAME));