diff --git a/Eigen/src/SparseCholesky/SimplicialCholesky.h b/Eigen/src/SparseCholesky/SimplicialCholesky.h index e2d7f95f25..a0815e708a 100644 --- a/Eigen/src/SparseCholesky/SimplicialCholesky.h +++ b/Eigen/src/SparseCholesky/SimplicialCholesky.h @@ -665,7 +665,7 @@ void SimplicialCholeskyBase::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 aa744a3eac..e5522701e2 100644 --- a/test/geo_hyperplane.cpp +++ b/test/geo_hyperplane.cpp @@ -129,7 +129,6 @@ template void planes() using std::abs; typedef Hyperplane Plane; typedef Matrix Vector; - typedef Matrix CoeffsType; for(int i = 0; i < 10; i++) {