Fix more enum arithmetic.

This commit is contained in:
Rasmus Munk Larsen
2021-06-15 09:09:31 -07:00
parent ad82d20cf6
commit 13fb5ab92c
17 changed files with 47 additions and 47 deletions

View File

@@ -66,7 +66,7 @@ template<typename _MatrixType, unsigned int UpLo> class SelfAdjointView
enum {
Mode = internal::traits<SelfAdjointView>::Mode,
Flags = internal::traits<SelfAdjointView>::Flags,
TransposeMode = ((Mode & Upper) ? Lower : 0) | ((Mode & Lower) ? Upper : 0)
TransposeMode = ((int(Mode) & int(Upper)) ? Lower : 0) | ((int(Mode) & int(Lower)) ? Upper : 0)
};
typedef typename MatrixType::PlainObject PlainObject;