diff options
author | Gael Guennebaud <g.gael@free.fr> | 2020-09-02 15:43:58 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2020-09-02 15:43:58 +0200 |
commit | 27e66480740eadf99e86e3c1c60d21f123a8eb48 (patch) | |
tree | 09e0154931d0c512cea3c106bebbcf73f3a646a5 /Eigen/src/SparseCore | |
parent | 5b9bfc892a39ad2e95ad7dc9131e777d8f38f587 (diff) |
fix #1901: warning in Mode==(Upper|Lower)
Diffstat (limited to 'Eigen/src/SparseCore')
-rw-r--r-- | Eigen/src/SparseCore/SparseSelfAdjointView.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/SparseCore/SparseSelfAdjointView.h b/Eigen/src/SparseCore/SparseSelfAdjointView.h index 65611b3d4..76117a010 100644 --- a/Eigen/src/SparseCore/SparseSelfAdjointView.h +++ b/Eigen/src/SparseCore/SparseSelfAdjointView.h @@ -453,7 +453,7 @@ void permute_symm_to_fullsymm(const MatrixType& mat, SparseMatrix<typename Matri Index r = it.row(); Index c = it.col(); Index ip = perm ? perm[i] : i; - if(Mode==(Upper|Lower)) + if(Mode==int(Upper|Lower)) count[StorageOrderMatch ? jp : ip]++; else if(r==c) count[ip]++; @@ -486,7 +486,7 @@ void permute_symm_to_fullsymm(const MatrixType& mat, SparseMatrix<typename Matri StorageIndex jp = perm ? perm[j] : j; StorageIndex ip = perm ? perm[i] : i; - if(Mode==(Upper|Lower)) + if(Mode==int(Upper|Lower)) { Index k = count[StorageOrderMatch ? jp : ip]++; dest.innerIndexPtr()[k] = StorageOrderMatch ? ip : jp; |