From 6add33e2c22e39a30c2a207e66c950e703287710 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Thu, 4 Sep 2008 01:35:39 +0000 Subject: [PATCH] fix warning --- Eigen/src/Core/Part.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/Part.h b/Eigen/src/Core/Part.h index 931933575..aed771210 100644 --- a/Eigen/src/Core/Part.h +++ b/Eigen/src/Core/Part.h @@ -88,7 +88,7 @@ template class Part inline Scalar coeff(int row, int col) const { - if( (Flags & LowerTriangularBit) && (col>row) || (Flags & UpperTriangularBit) && (row>col) ) + if( ((Flags & LowerTriangularBit) && (col>row)) || ((Flags & UpperTriangularBit) && (row>col)) ) return (Flags & SelfAdjointBit) ? ei_conj(m_matrix.coeff(col, row)) : (Scalar)0; if(Flags & UnitDiagBit) return col==row ? (Scalar)1 : m_matrix.coeff(row, col);