Skip to content

Commit

Permalink
FIX: block-like series must be terminated with the END value
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Dec 6, 2022
1 parent 783309e commit 31e72ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/n-data.c
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,8 @@ static int Do_Ordinal(REBVAL *ds, REBINT n)
}
if (len >= 0) {
VAL_TAIL(arg) = len;
if(!ANY_BINSTR(arg))
SET_END(BLK_SKIP(VAL_SERIES(arg), len));
}
return R_ARG1;
}
Expand Down

0 comments on commit 31e72ec

Please sign in to comment.