[Rcpp-commits] r1652 - pkg/Rcpp/inst/include/Rcpp/sugar/operators

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Jun 22 22:59:01 CEST 2010


Author: edd
Date: 2010-06-22 22:59:01 +0200 (Tue, 22 Jun 2010)
New Revision: 1652

Modified:
   pkg/Rcpp/inst/include/Rcpp/sugar/operators/not.h
Log:
extra set of parens to make g++ happy


Modified: pkg/Rcpp/inst/include/Rcpp/sugar/operators/not.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/sugar/operators/not.h	2010-06-22 17:32:25 UTC (rev 1651)
+++ pkg/Rcpp/inst/include/Rcpp/sugar/operators/not.h	2010-06-22 20:59:01 UTC (rev 1652)
@@ -66,7 +66,7 @@
 	class not_<CPLXSXP,false>{
 	public:
 		inline int apply( Rcomplex x ) const {
-			return (x.r == 0.0 & x.i == 0.0 ) ? FALSE : TRUE ;
+			return ((x.r == 0.0) & (x.i == 0.0) ) ? FALSE : TRUE ;
 		}
 	} ;
 	



More information about the Rcpp-commits mailing list