Commit 56a0c4bd authored by Radford Neal's avatar Radford Neal

use VARIANT_PASS_ON when evaluating body of closure, though it's hard to come...

use VARIANT_PASS_ON when evaluating body of closure, though it's hard to come up with an example where not causes problems
parent ab21531d
......@@ -960,7 +960,9 @@ static R_INLINE SEXP getSrcref(SEXP srcrefs, int ind)
SEXP attribute_hidden applyClosure_v(SEXP call, SEXP op, SEXP arglist, SEXP rho,
SEXP suppliedenv, int variant)
{
int vrnt = VARIANT_PENDING_OK | VARIANT_DIRECT_RETURN | variant;
int vrnt = VARIANT_PENDING_OK | VARIANT_DIRECT_RETURN
| VARIANT_PASS_ON(variant);
SEXP formals, actuals, savedrho;
volatile SEXP body, newrho;
SEXP f, a, res;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment