Skip to content

Commit 7636fec

Browse files
committed
Adjust two 'inherits'-alike arguments following review comments
1 parent 5734869 commit 7636fec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inst/include/Rcpp/Environment.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ namespace Rcpp{
100100
#if R_VERSION < R_Version(4,5,0)
101101
SEXP res = Rf_findVarInFrame( env, nameSym ) ;
102102
#else
103-
SEXP res = R_getVarEx(nameSym, env, TRUE, R_UnboundValue);
103+
SEXP res = R_getVarEx(nameSym, env, FALSE, R_UnboundValue);
104104
#endif
105105
if( res == R_UnboundValue ) return R_NilValue ;
106106

@@ -123,7 +123,7 @@ namespace Rcpp{
123123
#if R_VERSION < R_Version(4,5,0)
124124
SEXP res = Rf_findVarInFrame( env, name ) ;
125125
#else
126-
SEXP res = R_getVarEx(name, env, TRUE, R_UnboundValue);
126+
SEXP res = R_getVarEx(name, env, FALSE, R_UnboundValue);
127127
#endif
128128

129129
if( res == R_UnboundValue ) return R_NilValue ;

0 commit comments

Comments
 (0)