[Rcpp-commits] r551 - pkg/src/Rcpp/internal

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Feb 1 22:00:18 CET 2010


Author: romain
Date: 2010-02-01 22:00:18 +0100 (Mon, 01 Feb 2010)
New Revision: 551

Modified:
   pkg/src/Rcpp/internal/wrap.h
Log:
minor fix

Modified: pkg/src/Rcpp/internal/wrap.h
===================================================================
--- pkg/src/Rcpp/internal/wrap.h	2010-02-01 20:58:43 UTC (rev 550)
+++ pkg/src/Rcpp/internal/wrap.h	2010-02-01 21:00:18 UTC (rev 551)
@@ -51,7 +51,7 @@
 
 // initializes a vector. The template does nothing because there is
 template<int RTYPE> void r_init_vector(SEXP x){
-	typedef ::Rcpp::traits::storage_type<RTYPE> CTYPE ;
+	typedef ::Rcpp::traits::storage_type<RTYPE>::type CTYPE ;
 	CTYPE* start=r_vector_start<RTYPE>(x) ;
 	std::fill( start, start + Rf_length(x), get_zero<RTYPE,CTYPE>(0) ) ;
 }



More information about the Rcpp-commits mailing list