[Rcpp-commits] r490 - pkg/src/Rcpp

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Jan 27 23:09:35 CET 2010


Author: romain
Date: 2010-01-27 23:09:35 +0100 (Wed, 27 Jan 2010)
New Revision: 490

Modified:
   pkg/src/Rcpp/CharacterVector.h
Log:


Modified: pkg/src/Rcpp/CharacterVector.h
===================================================================
--- pkg/src/Rcpp/CharacterVector.h	2010-01-27 22:07:27 UTC (rev 489)
+++ pkg/src/Rcpp/CharacterVector.h	2010-01-27 22:09:35 UTC (rev 490)
@@ -87,7 +87,7 @@
 		size_t size = std::distance( first, last ) ;
 		SEXP x = m_sexp ;
 		bool update = false ;
-		if( Rf_isNull(m_sexp) || length() != size ){
+		if( Rf_isNull(m_sexp) || static_cast<size_t>(length()) != size ){
 			x = Rf_allocVector( STRSXP, size ) ;
 			update = true ;
 		}



More information about the Rcpp-commits mailing list