diff options
author | 2009-01-22 00:09:34 +0000 | |
---|---|---|
committer | 2009-01-22 00:09:34 +0000 | |
commit | 9e3c73110af86ccedbb2ba46d6c11e1a2c71c32e (patch) | |
tree | a4b0fcdb38fbd166d0905f70092ffc8a9d1742d9 /test/sum.cpp | |
parent | 4225b7bf5788755246b94073ef194fe130f1f1e2 (diff) |
fix a bunch of warnings (actual issues) reported by Frank
Diffstat (limited to 'test/sum.cpp')
-rw-r--r-- | test/sum.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sum.cpp b/test/sum.cpp index c13651853..fe707e9b2 100644 --- a/test/sum.cpp +++ b/test/sum.cpp @@ -34,7 +34,7 @@ template<typename MatrixType> void matrixSum(const MatrixType& m) MatrixType m1 = MatrixType::Random(rows, cols); VERIFY_IS_MUCH_SMALLER_THAN(MatrixType::Zero(rows, cols).sum(), Scalar(1)); - VERIFY_IS_APPROX(MatrixType::Ones(rows, cols).sum(), Scalar(rows*cols)); + VERIFY_IS_APPROX(MatrixType::Ones(rows, cols).sum(), Scalar(float(rows*cols))); // the float() here to shut up excessive MSVC warning about int->complex conversion being lossy Scalar x = Scalar(0); for(int i = 0; i < rows; i++) for(int j = 0; j < cols; j++) x += m1(i,j); VERIFY_IS_APPROX(m1.sum(), x); |