@@ -2637,11 +2637,7 @@ static SEXP replaceCall(SEXP fun, SEXP val, SEXP args, SEXP rhs)
26372637}
26382638
26392639
2640- /* rho is only needed for _R_CHECK_LENGTH_1_CONDITION_=package:name and for 
2641-      detecting the current package in related diagnostic messages; it should 
2642-      be removed when length >1 condition is turned into an error 
2643- */ 
2644- static  R_INLINE  Rboolean  asLogicalNoNA (SEXP  s , SEXP  call , SEXP  rho )
2640+ static  R_INLINE  Rboolean  asLogicalNoNA (SEXP  s , SEXP  call )
26452641{
26462642    Rboolean  cond  =  NA_LOGICAL ;
26472643
@@ -2706,7 +2702,7 @@ attribute_hidden SEXP do_if(SEXP call, SEXP op, SEXP args, SEXP rho)
27062702    int  vis = 0 ;
27072703
27082704    PROTECT (Cond  =  eval (CAR (args ), rho ));
2709-     if  (asLogicalNoNA (Cond , call ,  rho ))
2705+     if  (asLogicalNoNA (Cond , call ))
27102706	Stmt  =  CADR (args );
27112707    else  {
27122708	if  (length (args ) >  2 )
@@ -2917,7 +2913,7 @@ attribute_hidden SEXP do_while(SEXP call, SEXP op, SEXP args, SEXP rho)
29172913    if  (SETJMP (cntxt .cjmpbuf ) !=  CTXT_BREAK ) {
29182914	for (;;) {
29192915	    SEXP  cond  =  PROTECT (eval (CAR (args ), rho ));
2920- 	    int  condl  =  asLogicalNoNA (cond , call ,  rho );
2916+ 	    int  condl  =  asLogicalNoNA (cond , call );
29212917	    UNPROTECT (1 );
29222918	    if  (!condl ) break ;
29232919	    if  (RDEBUG (rho ) &&  !bgn  &&  !R_GlobalContext -> browserfinish ) {
@@ -6918,7 +6914,7 @@ static R_INLINE Rboolean GETSTACK_LOGICAL_NO_NA_PTR(R_bcstack_t *s, int callidx,
69186914    }
69196915    SEXP  call  =  GETCONST (constants , callidx );
69206916    PROTECT (value );
6921-     Rboolean  ans  =  asLogicalNoNA (value , call ,  rho );
6917+     Rboolean  ans  =  asLogicalNoNA (value , call );
69226918    UNPROTECT (1 );
69236919    return  ans ;
69246920}
0 commit comments