diff options
author | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2015-02-22 12:40:51 +0100 |
---|---|---|
committer | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2015-02-22 12:40:51 +0100 |
commit | 052b6b40f179a7e3ee7ae14c057facb45fde7b9c (patch) | |
tree | a5e3dfa59e1d1e19d565c3e27023b365fe9f7d3b | |
parent | ecbf2a6656830def411393927aba3a1b987d6536 (diff) |
Fix two trivial warnings
-rw-r--r-- | Eigen/src/SparseCholesky/SimplicialCholesky.h | 2 | ||||
-rw-r--r-- | test/geo_hyperplane.cpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/Eigen/src/SparseCholesky/SimplicialCholesky.h b/Eigen/src/SparseCholesky/SimplicialCholesky.h index e2d7f95f2..a0815e708 100644 --- a/Eigen/src/SparseCholesky/SimplicialCholesky.h +++ b/Eigen/src/SparseCholesky/SimplicialCholesky.h @@ -665,7 +665,7 @@ void SimplicialCholeskyBase<Derived>::ordering(const MatrixType& a, ConstCholMat { m_Pinv.resize(0); m_P.resize(0); - if(UpLo==Lower || MatrixType::IsRowMajor) + if(int(UpLo)==int(Lower) || MatrixType::IsRowMajor) { // we have to transpose the lower part to to the upper one ap.resize(size,size); diff --git a/test/geo_hyperplane.cpp b/test/geo_hyperplane.cpp index aa744a3ea..e5522701e 100644 --- a/test/geo_hyperplane.cpp +++ b/test/geo_hyperplane.cpp @@ -129,7 +129,6 @@ template<typename Scalar> void planes() using std::abs; typedef Hyperplane<Scalar, 3> Plane; typedef Matrix<Scalar,3,1> Vector; - typedef Matrix<Scalar,4,1> CoeffsType; for(int i = 0; i < 10; i++) { |