Skip to content

Commit 3cd99b3

Browse files
committed
Another stab at #113
1 parent 03323bd commit 3cd99b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/barrier.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ SEXP set_current_error(SEXP cache, SEXP e){
135135
SEXP init_Rcpp_cache(){
136136
SEXP getNamespaceSym = Rf_install("getNamespace"); // cannot be gc()'ed once in symbol table
137137
Rcpp::Shield<SEXP> RcppString( Rf_mkString("Rcpp") );
138-
Rcpp::Shield<SEXP> RCPP( Rf_eval(Rf_lang2( getNamespaceSym, RcppString ), R_GlobalEnv) ) ;
138+
Rcpp::Shield<SEXP> call( Rf_lang2( getNamespaceSym, RcppString ) );
139+
Rcpp::Shield<SEXP> RCPP( Rf_eval(call, R_GlobalEnv) ) ;
139140
Rcpp::Shield<SEXP> cache( Rf_allocVector( VECSXP, RCPP_CACHE_SIZE ) );
140141

141142
// the Rcpp namespace

0 commit comments

Comments
 (0)