From 6ea6276f20cee16e86e35d60e8ce81cc48a46cb3 Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Tue, 4 May 2010 14:06:41 +0200 Subject: [PATCH] Quiet MSVC. --- 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 c24665a4b..1311ca38f 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -854,7 +854,7 @@ template<> struct ei_random_impl { static inline bool run() { - return bool(ei_random(0,1)); + return ei_random(0,1)==0 ? false : true; }; };