diff options
author | 2010-05-04 14:06:41 +0200 | |
---|---|---|
committer | 2010-05-04 14:06:41 +0200 | |
commit | 6ea6276f20cee16e86e35d60e8ce81cc48a46cb3 (patch) | |
tree | 4657971c11e9b4442d78b1a101c3fe7ddbbca532 | |
parent | 38021b08c1278d0740fd3e678d17e7539c9f1c93 (diff) |
Quiet MSVC.
-rw-r--r-- | Eigen/src/Core/MathFunctions.h | 2 |
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; }; }; |