Fix warning.

This commit is contained in:
Gael Guennebaud 2016-07-06 11:05:30 +02:00
parent 367ef66af3
commit d2b5a19e0f

View File

@ -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::RowsAtCompileTime, 1> RhsType;
typedef Matrix<Scalar, MatrixType::ColsAtCompileTime, 1> ResType; typedef Matrix<Scalar, MatrixType::ColsAtCompileTime, 1> ResType;
Index rows = MatrixType::RowsAtCompileTime==Dynamic ? internal::random<Index>(2,EIGEN_TEST_MAX_SIZE/2) : MatrixType::RowsAtCompileTime; 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)) : MatrixType::ColsAtCompileTime; Index cols = MatrixType::ColsAtCompileTime==Dynamic ? (square?rows:internal::random<Index>(2,rows)) : Index(MatrixType::ColsAtCompileTime);
MatrixType A = MatrixType::Random(rows,cols); MatrixType A = MatrixType::Random(rows,cols);
RhsType b = RhsType::Random(rows); RhsType b = RhsType::Random(rows);