Skip to content

Commit

Permalink
FIX: fix of the previous fix..
Browse files Browse the repository at this point in the history
Git somehow fooled me with reverting my changes.

Related issue: metaeducation/rebol-issues#2331
  • Loading branch information
Oldes committed Dec 5, 2018
1 parent 6267d9a commit 3e03129
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/core/n-loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@

if (THROWN(ds)) { // Break, throw, continue, error.
if (Check_Error(ds) >= 0) {
*DS_RETURN = *DS_NEXT;
*DS_RETURN = *DS_NEXT; // use thrown result as a return
return R_RET; // does not resets series position
}
}
Expand All @@ -267,9 +267,7 @@
}
else Trap_Arg(var);

// !!!!! ???? allowed to write VAR????
*var = *DS_ARG(1);
//*D_RET = *var;
*var = *DS_ARG(1); // restores starting value position
return R_RET;
}

Expand Down

0 comments on commit 3e03129

Please sign in to comment.