diff options
author | 2010-05-21 02:13:16 +0200 | |
---|---|---|
committer | 2010-05-21 02:13:16 +0200 | |
commit | aadea5ae56b97f316f29bba2fd176c1be8fba852 (patch) | |
tree | 5fcb0e0ce8b18af1f14d93f85dd00d810019f7f3 /Eigen | |
parent | c1d005e976af679ed52291fd549d7c9370f2672f (diff) |
fix a warning
Diffstat (limited to 'Eigen')
-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 9dda28fef..cc77799d7 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -658,7 +658,7 @@ struct ei_pow_default_impl<Scalar, true> static inline Scalar run(Scalar x, Scalar y) { int res = 1; - if(NumTraits<Scalar>::IsSigned) ei_assert(y >= 0); + ei_assert(!NumTraits<Scalar>::IsSigned || y >= 0); if(y & 1) res *= x; y >>= 1; while(y) |