浏览代码

Fix assertion in rec_check_slots.

Mike Pall 15 年之前
父节点
当前提交
e38fbb3d0a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/lj_record.c

+ 1 - 1
src/lj_record.c

@@ -96,7 +96,7 @@ static void rec_check_ir(jit_State *J)
 static void rec_check_slots(jit_State *J)
 {
   BCReg s, nslots = J->baseslot + J->maxslot;
-  int32_t depth;
+  int32_t depth = 0;
   cTValue *base = J->L->base - J->baseslot;
   lua_assert(J->baseslot >= 1 && J->baseslot < LJ_MAX_JSLOTS);
   lua_assert(J->baseslot == 1 || (J->slot[J->baseslot-1] & TREF_FRAME));