aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/inplace_decomposition.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2016-07-06 11:05:30 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2016-07-06 11:05:30 +0200
commitd2b5a19e0f2871b553b21c21dfc834eebab8d348 (patch)
tree9b1acb5580dca54e76b486eace6cf551e744fb42 /test/inplace_decomposition.cpp
parent367ef66af3135227f3725613db53db1e6d316058 (diff)
Fix warning.
Diffstat (limited to 'test/inplace_decomposition.cpp')
-rw-r--r--test/inplace_decomposition.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/inplace_decomposition.cpp b/test/inplace_decomposition.cpp
index 4900312f1..92d0d91b6 100644
--- a/test/inplace_decomposition.cpp
+++ b/test/inplace_decomposition.cpp
@@ -20,8 +20,8 @@ template<typename DecType,typename MatrixType> void inplace(bool square = false,
typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> RhsType;
typedef Matrix<Scalar, MatrixType::ColsAtCompileTime, 1> ResType;
- Index rows = MatrixType::RowsAtCompileTime==Dynamic ? internal::random<Index>(2,EIGEN_TEST_MAX_SIZE/2) : MatrixType::RowsAtCompileTime;
- Index cols = MatrixType::ColsAtCompileTime==Dynamic ? (square?rows:internal::random<Index>(2,rows)) : MatrixType::ColsAtCompileTime;
+ Index rows = MatrixType::RowsAtCompileTime==Dynamic ? internal::random<Index>(2,EIGEN_TEST_MAX_SIZE/2) : Index(MatrixType::RowsAtCompileTime);
+ Index cols = MatrixType::ColsAtCompileTime==Dynamic ? (square?rows:internal::random<Index>(2,rows)) : Index(MatrixType::ColsAtCompileTime);
MatrixType A = MatrixType::Random(rows,cols);
RhsType b = RhsType::Random(rows);