Browse files

Fix enumerations in the Loop_Each for series at tail

A check for empty series enumerations was checking just the raw length
of a series, vs. the length "at" the ANY-SERIES! `index of` position.
  • Loading branch information...
hostilefork committed Dec 17, 2018
1 parent dcc4cd0 commit 8994d234e8a8be2962a4045dc5b4ff4805d8ad61
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/n-loop.c
@@ -717,7 +717,7 @@ static REB_R Loop_Each(REBFRM *frame_, LOOP_MODE mode)

les.data_len = SER_LEN(les.data_ser); // HOLD so length can't change
if (les.data_len == 0) {
if (les.data_idx >= les.data_len) {
assert(IS_BLANK(D_OUT)); // result if loop body never runs
r = nullptr;
goto cleanup;

0 comments on commit 8994d23

Please sign in to comment.