diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2009-07-23 00:11:25 +0200 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2009-07-23 00:11:25 +0200 |
commit | 8d2cd744b0977164795587196457e0766cc53a90 (patch) | |
tree | f0dc95369d84f22822499ddc168cabf32685cf74 /Eigen/src/Core | |
parent | 562864bcfb363f603f40ce716c49539fcd1565d3 (diff) |
Added an explicit cast from int to bool to suppress MSVC warnings.
Diffstat (limited to 'Eigen/src/Core')
-rw-r--r-- | Eigen/src/Core/Matrix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/Matrix.h b/Eigen/src/Core/Matrix.h index f41c9e042..adb203dee 100644 --- a/Eigen/src/Core/Matrix.h +++ b/Eigen/src/Core/Matrix.h @@ -550,7 +550,7 @@ class Matrix template<typename OtherDerived> EIGEN_STRONG_INLINE Matrix& _set(const MatrixBase<OtherDerived>& other) { - _set_selector(other.derived(), typename ei_meta_if<(int(OtherDerived::Flags) & EvalBeforeAssigningBit), ei_meta_true, ei_meta_false>::ret()); + _set_selector(other.derived(), typename ei_meta_if<static_cast<bool>(int(OtherDerived::Flags) & EvalBeforeAssigningBit), ei_meta_true, ei_meta_false>::ret()); return *this; } |