From 104f9954e1ebf7421b99e6906b5d1700869748d7 Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Fri, 25 Sep 2009 14:58:20 +0200 Subject: [PATCH] Removed implicit type conversion (VC warning fix). --- Eigen/src/Core/MathFunctions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index 8c86d1dd4..05469b340 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -332,7 +332,7 @@ inline bool ei_sqrt(bool x) { return x; } template<> inline bool ei_random() { - return ei_random(0,1); + return (ei_random(0,1) == 1); } inline bool ei_isMuchSmallerThan(bool a, bool, bool = precision()) {