Skip to content

Commit e6f866c

Browse files
fix another wrong use of Shield
1 parent 911037b commit e6f866c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/include/Rcpp/internal/export.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ namespace Rcpp{
115115
void export_indexing__impl( SEXP x, T& res, ::Rcpp::traits::true_type ) {
116116
const int RTYPE = ::Rcpp::traits::r_sexptype_traits<value_type>::rtype ;
117117
typedef typename ::Rcpp::traits::storage_type<RTYPE>::type STORAGE ;
118-
Shield<SEXP> y = ::Rcpp::r_cast<RTYPE>(x) ;
118+
Shield<SEXP> y( ::Rcpp::r_cast<RTYPE>(x) );
119119
STORAGE* start = ::Rcpp::internal::r_vector_start<RTYPE>(y) ;
120120
R_len_t size = ::Rf_length(y) ;
121121
for( R_len_t i=0; i<size; i++){

0 commit comments

Comments
 (0)