diff options
author | Jose Luis Blanco <joseluisblancoc@gmail.com> | 2010-12-29 06:15:41 -0500 |
---|---|---|
committer | Jose Luis Blanco <joseluisblancoc@gmail.com> | 2010-12-29 06:15:41 -0500 |
commit | 97c54ad2204f6645c1a0b6bca3d9d32ca51c0e23 (patch) | |
tree | 5417042dd9c1c390c62956758be81e2575075676 /Eigen/src/Core/util/StaticAssert.h | |
parent | 7a29ae0b5c8374cf304029926bc04fc924faf59d (diff) |
fix MSVC warnings, bug #143
Diffstat (limited to 'Eigen/src/Core/util/StaticAssert.h')
-rw-r--r-- | Eigen/src/Core/util/StaticAssert.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/util/StaticAssert.h b/Eigen/src/Core/util/StaticAssert.h index e7904dee7..d72a182e5 100644 --- a/Eigen/src/Core/util/StaticAssert.h +++ b/Eigen/src/Core/util/StaticAssert.h @@ -107,12 +107,12 @@ #ifdef _MSC_VER #define EIGEN_STATIC_ASSERT(CONDITION,MSG) \ - {Eigen::internal::static_assertion<(CONDITION)>::MSG;} + {Eigen::internal::static_assertion<bool(CONDITION)>::MSG;} #else #define EIGEN_STATIC_ASSERT(CONDITION,MSG) \ - if (Eigen::internal::static_assertion<(CONDITION)>::MSG) {} + if (Eigen::internal::static_assertion<bool(CONDITION)>::MSG) {} #endif |