fix #1901: warning in Mode==(Upper|Lower)
diff --git a/Eigen/src/SparseCore/SparseSelfAdjointView.h b/Eigen/src/SparseCore/SparseSelfAdjointView.h index 65611b3..76117a0 100644 --- a/Eigen/src/SparseCore/SparseSelfAdjointView.h +++ b/Eigen/src/SparseCore/SparseSelfAdjointView.h
@@ -453,7 +453,7 @@ 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 @@ 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;