Skip to content

Commit 3e03129

Browse files
committed
FIX: fix of the previous fix..
Git somehow fooled me with reverting my changes. Related issue: metaeducation/rebol-issues#2331
1 parent 6267d9a commit 3e03129

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/core/n-loop.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@
254254

255255
if (THROWN(ds)) { // Break, throw, continue, error.
256256
if (Check_Error(ds) >= 0) {
257-
*DS_RETURN = *DS_NEXT;
257+
*DS_RETURN = *DS_NEXT; // use thrown result as a return
258258
return R_RET; // does not resets series position
259259
}
260260
}
@@ -267,9 +267,7 @@
267267
}
268268
else Trap_Arg(var);
269269

270-
// !!!!! ???? allowed to write VAR????
271-
*var = *DS_ARG(1);
272-
//*D_RET = *var;
270+
*var = *DS_ARG(1); // restores starting value position
273271
return R_RET;
274272
}
275273

0 commit comments

Comments
 (0)