diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2009-09-25 14:58:20 +0200 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2009-09-25 14:58:20 +0200 |
commit | 104f9954e1ebf7421b99e6906b5d1700869748d7 (patch) | |
tree | bc1cd742c1b0ba293491313c89a9fbc6a2dd16f4 | |
parent | 21d2533723ae31bb7b979239dd45af8489e65397 (diff) |
Removed implicit type conversion (VC warning fix).
-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 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<int>(0,1); + return (ei_random<int>(0,1) == 1); } inline bool ei_isMuchSmallerThan(bool a, bool, bool = precision<bool>()) { |