Fix more enum arithmetic.

(cherry picked from commit 13fb5ab92c)
This commit is contained in:
Rasmus Munk Larsen
2021-06-15 09:09:31 -07:00
committed by Antonio Sánchez
parent 5e75331b9f
commit 47722a66f2
17 changed files with 47 additions and 47 deletions

View File

@@ -218,7 +218,7 @@ class SimplicialCholeskyBase : public SparseSolverBase<Derived>
CholMatrixType tmp(size,size);
ConstCholMatrixPtr pmat;
if(m_P.size()==0 && (UpLo&Upper)==Upper)
if(m_P.size() == 0 && (int(UpLo) & int(Upper)) == Upper)
{
// If there is no ordering, try to directly use the input matrix without any copy
internal::simplicial_cholesky_grab_input<CholMatrixType,MatrixType>::run(a, pmat, tmp);