[Rcpp-commits] r3784 - pkg/Rcpp/inst/unitTests
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Sun Sep 30 20:54:20 CEST 2012
Author: edd
Date: 2012-09-30 20:54:19 +0200 (Sun, 30 Sep 2012)
New Revision: 3784
Modified:
pkg/Rcpp/inst/unitTests/runit.sugarOps.R
Log:
small fix to force double as int doesn't get converted up
Modified: pkg/Rcpp/inst/unitTests/runit.sugarOps.R
===================================================================
--- pkg/Rcpp/inst/unitTests/runit.sugarOps.R 2012-09-29 20:50:05 UTC (rev 3783)
+++ pkg/Rcpp/inst/unitTests/runit.sugarOps.R 2012-09-30 18:54:19 UTC (rev 3784)
@@ -23,7 +23,7 @@
"vector_scalar_ops" = list(signature(x = "numeric"),
'
NumericVector xx(x);
- NumericVector y1 = xx + 2;
+ NumericVector y1 = xx + 2.0;
NumericVector y2 = 2 - xx;
NumericVector y3 = xx * 2.0;
NumericVector y4 = 2.0 / xx;
More information about the Rcpp-commits
mailing list