Fix two trivial warnings

This commit is contained in:
Christoph Hertzberg
2015-02-22 12:40:51 +01:00
parent ecbf2a6656
commit 052b6b40f1
2 changed files with 1 additions and 2 deletions

View File

@@ -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);