فهرست منبع

Fix compilation of multi-result call to next().

Thanks to Vyacheslav Egorov.
Mike Pall 3 سال پیش
والد
کامیت
442eff63ab
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/lj_ffrecord.c

+ 1 - 1
src/lj_ffrecord.c

@@ -546,7 +546,7 @@ static void LJ_FASTCALL recff_next(jit_State *J, RecordFFData *rd)
     ix.keyv.u32.lo = lj_tab_keyindex(tabV(&ix.tabv), keyv);
     /* Omit the value, if not used by the caller. */
     ix.idxchain = (J->framedepth && frame_islua(J->L->base-1) &&
-		   bc_b(frame_pc(J->L->base-1)[-1]) <= 2);
+		   bc_b(frame_pc(J->L->base-1)[-1])-1 < 2);
     ix.mobj = 0;  /* We don't need the next index. */
     rd->nres = lj_record_next(J, &ix);
     J->base[0] = ix.key;