We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ca971d commit 911037bCopy full SHA for 911037b
inst/include/Rcpp/internal/export.h
@@ -115,7 +115,7 @@ namespace Rcpp{
115
void export_indexing__impl( SEXP x, T& res, ::Rcpp::traits::true_type ) {
116
const int RTYPE = ::Rcpp::traits::r_sexptype_traits<value_type>::rtype ;
117
typedef typename ::Rcpp::traits::storage_type<RTYPE>::type STORAGE ;
118
- Shield<SEXP> y = PROTECT( ::Rcpp::r_cast<RTYPE>(x) ) ;
+ Shield<SEXP> y = ::Rcpp::r_cast<RTYPE>(x) ;
119
STORAGE* start = ::Rcpp::internal::r_vector_start<RTYPE>(y) ;
120
R_len_t size = ::Rf_length(y) ;
121
for( R_len_t i=0; i<size; i++){
0 commit comments