Skip to content

Commit 4deb5a1

Browse files
author
Mike Pall
committed
Merge branch 'master' into v2.1
2 parents 29bc1f0 + 6ca5801 commit 4deb5a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lj_ffrecord.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,9 @@ static void LJ_FASTCALL recff_select(jit_State *J, RecordFFData *rd)
323323
ptrdiff_t n = (ptrdiff_t)J->maxslot;
324324
if (start < 0) start += n;
325325
else if (start > n) start = n;
326-
rd->nres = n - start;
327326
if (start >= 1) {
328327
ptrdiff_t i;
328+
rd->nres = n - start;
329329
for (i = 0; i < n - start; i++)
330330
J->base[i] = J->base[start+i];
331331
} /* else: Interpreter will throw. */

0 commit comments

Comments
 (0)