浏览代码

Fix 64 bit portability problem in rec_ret().

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

+ 1 - 1
src/lj_record.c

@@ -534,11 +534,11 @@ static void rec_ret(jit_State *J, BCReg rbase, ptrdiff_t gotresults)
     if (--J->framedepth < 0)
       lj_trace_err(J, LJ_TRERR_NYIRETL);
     lua_assert(J->baseslot > 1);
-    J->base[--rbase] = TREF_TRUE;  /* Prepend true to results. */
     gotresults++;
     rbase += cbase;
     J->baseslot -= (BCReg)cbase;
     J->base -= cbase;
+    J->base[--rbase] = TREF_TRUE;  /* Prepend true to results. */
     frame = frame_prevd(frame);
   }
   if (frame_islua(frame)) {  /* Return to Lua frame. */