aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lj_ffrecord.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_ffrecord.c b/src/lj_ffrecord.c
index 770b1586..92902b70 100644
--- a/src/lj_ffrecord.c
+++ b/src/lj_ffrecord.c
@@ -323,9 +323,9 @@ static void LJ_FASTCALL recff_select(jit_State *J, RecordFFData *rd)
323 ptrdiff_t n = (ptrdiff_t)J->maxslot; 323 ptrdiff_t n = (ptrdiff_t)J->maxslot;
324 if (start < 0) start += n; 324 if (start < 0) start += n;
325 else if (start > n) start = n; 325 else if (start > n) start = n;
326 rd->nres = n - start;
327 if (start >= 1) { 326 if (start >= 1) {
328 ptrdiff_t i; 327 ptrdiff_t i;
328 rd->nres = n - start;
329 for (i = 0; i < n - start; i++) 329 for (i = 0; i < n - start; i++)
330 J->base[i] = J->base[start+i]; 330 J->base[i] = J->base[start+i];
331 } /* else: Interpreter will throw. */ 331 } /* else: Interpreter will throw. */