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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Jun 24 20:20:44 CEST 2010


Author: dmbates
Date: 2010-06-24 20:20:43 +0200 (Thu, 24 Jun 2010)
New Revision: 1720

Modified:
   pkg/Rcpp/src/RcppCommon.cpp
Log:
Cast to keep -Wall quiet.


Modified: pkg/Rcpp/src/RcppCommon.cpp
===================================================================
--- pkg/Rcpp/src/RcppCommon.cpp	2010-06-24 18:08:43 UTC (rev 1719)
+++ pkg/Rcpp/src/RcppCommon.cpp	2010-06-24 18:20:43 UTC (rev 1720)
@@ -208,7 +208,7 @@
 
 SEXP as_character_externalptr(SEXP xp){
 	char buffer[20] ;
-	sprintf( buffer, "%p", EXTPTR_PTR(xp) ) ;
+	sprintf( buffer, "%p", (void*)EXTPTR_PTR(xp) ) ;
 	return Rcpp::wrap( (const char*)buffer ) ;
 }
 



More information about the Rcpp-commits mailing list