diff options
author | 2009-08-13 09:53:47 -0400 | |
---|---|---|
committer | 2009-08-13 09:53:47 -0400 | |
commit | 13b191d94ba69371a59f2cdc4ea510205cc24a68 (patch) | |
tree | b6c36c57dae37cb79aedce02d354a21d0729d5c9 /Eigen/src/Core/BandMatrix.h | |
parent | 1b257a7620d122a05f71b6ebd52e14fe5f1b18ef (diff) |
apply Koldo's workaround for MSVC bug
Diffstat (limited to 'Eigen/src/Core/BandMatrix.h')
-rw-r--r-- | Eigen/src/Core/BandMatrix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/BandMatrix.h b/Eigen/src/Core/BandMatrix.h index d3997397d..841d1786a 100644 --- a/Eigen/src/Core/BandMatrix.h +++ b/Eigen/src/Core/BandMatrix.h @@ -130,7 +130,7 @@ class BandMatrix : public AnyMatrixBase<BandMatrix<_Scalar,Rows,Cols,Supers,Subs template<int Index> struct DiagonalIntReturnType { enum { - ReturnOpposite = (Options&SelfAdjoint) && ((Index>0 && Supers==0) || (Index<0 && Subs==0)), + ReturnOpposite = (Options&SelfAdjoint) && (((Index)>0 && Supers==0) || ((Index)<0 && Subs==0)), Conjugate = ReturnOpposite && NumTraits<Scalar>::IsComplex, ActualIndex = ReturnOpposite ? -Index : Index, DiagonalSize = (RowsAtCompileTime==Dynamic || ColsAtCompileTime==Dynamic) |