aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-05-04 14:06:41 +0200
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-05-04 14:06:41 +0200
commit6ea6276f20cee16e86e35d60e8ce81cc48a46cb3 (patch)
tree4657971c11e9b4442d78b1a101c3fe7ddbbca532
parent38021b08c1278d0740fd3e678d17e7539c9f1c93 (diff)
Quiet MSVC.
-rw-r--r--Eigen/src/Core/MathFunctions.h2
1 files changed, 1 insertions, 1 deletions
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<bool>
{
static inline bool run()
{
- return bool(ei_random<int>(0,1));
+ return ei_random<int>(0,1)==0 ? false : true;
};
};