From 597bb61c23089db8a659d3821a8fc5d4f6f25d1b Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 18 Oct 2010 06:54:11 -0400 Subject: [PATCH] fix stupid msvc warning in jacobisvd --- Eigen/src/SVD/JacobiSVD.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Eigen/src/SVD/JacobiSVD.h b/Eigen/src/SVD/JacobiSVD.h index b130ed4db..efc9af7af 100644 --- a/Eigen/src/SVD/JacobiSVD.h +++ b/Eigen/src/SVD/JacobiSVD.h @@ -432,10 +432,10 @@ void JacobiSVD::allocate(Index rows, Index cols, u m_rows = rows; m_cols = cols; m_isInitialized = false; - m_computeFullU = computationOptions & ComputeFullU; - m_computeThinU = computationOptions & ComputeThinU; - m_computeFullV = computationOptions & ComputeFullV; - m_computeThinV = computationOptions & ComputeThinV; + m_computeFullU = bool(computationOptions & ComputeFullU); + m_computeThinU = bool(computationOptions & ComputeThinU); + m_computeFullV = bool(computationOptions & ComputeFullV); + m_computeThinV = bool(computationOptions & ComputeThinV); ei_assert(!(m_computeFullU && m_computeThinU) && "JacobiSVD: you can't ask for both full and thin U"); ei_assert(!(m_computeFullV && m_computeThinV) && "JacobiSVD: you can't ask for both full and thin V"); ei_assert(EIGEN_IMPLIES(m_computeThinU || m_computeThinV, MatrixType::ColsAtCompileTime==Dynamic) &&