Skip to content

Commit 31e72ec

Browse files
committed
FIX: block-like series must be terminated with the END value
1 parent 783309e commit 31e72ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/n-data.c

+2
Original file line numberDiff line numberDiff line change
@@ -1048,6 +1048,8 @@ static int Do_Ordinal(REBVAL *ds, REBINT n)
10481048
}
10491049
if (len >= 0) {
10501050
VAL_TAIL(arg) = len;
1051+
if(!ANY_BINSTR(arg))
1052+
SET_END(BLK_SKIP(VAL_SERIES(arg), len));
10511053
}
10521054
return R_ARG1;
10531055
}

0 commit comments

Comments
 (0)