From 1a77334d5435f8edd6d7d756222207a8e3f268a6 Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Wed, 3 Feb 2010 19:20:25 +0100 Subject: Silenced type conversion warnings. --- test/redux.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/redux.cpp') diff --git a/test/redux.cpp b/test/redux.cpp index 511df1d22..2dc4dcc45 100644 --- a/test/redux.cpp +++ b/test/redux.cpp @@ -27,6 +27,7 @@ template void matrixRedux(const MatrixType& m) { typedef typename MatrixType::Scalar Scalar; + typedef typename MatrixType::RealScalar RealScalar; int rows = m.rows(); int cols = m.cols(); @@ -44,7 +45,7 @@ template void matrixRedux(const MatrixType& m) minc = std::min(ei_real(minc), ei_real(m1(i,j))); maxc = std::max(ei_real(maxc), ei_real(m1(i,j))); } - const Scalar mean = s/Scalar(rows*cols); + const Scalar mean = s/Scalar(RealScalar(rows*cols)); VERIFY_IS_APPROX(m1.sum(), s); VERIFY_IS_APPROX(m1.mean(), mean); -- cgit v1.2.3