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

@@ -168,7 +168,7 @@ EIGEN_DEVICE_FUNC void TriangularViewImpl<MatrixType,Mode,Dense>::solveInPlace(c
{
OtherDerived& other = _other.const_cast_derived();
eigen_assert( derived().cols() == derived().rows() && ((Side==OnTheLeft && derived().cols() == other.rows()) || (Side==OnTheRight && derived().cols() == other.cols())) );
eigen_assert((!(Mode & ZeroDiag)) && bool(Mode & (Upper|Lower)));
eigen_assert((!(int(Mode) & int(ZeroDiag))) && bool(int(Mode) & (int(Upper) | int(Lower))));
// If solving for a 0x0 matrix, nothing to do, simply return.
if (derived().cols() == 0)
return;