From 3bd421e073c9deb2c70b50cbd2993fd5a16382b3 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Tue, 29 Jun 2010 10:02:10 -0400 Subject: fix potential warning --- Eigen/src/Householder/Householder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h index a7fa15bb4..f943a0852 100644 --- a/Eigen/src/Householder/Householder.h +++ b/Eigen/src/Householder/Householder.h @@ -76,7 +76,7 @@ void MatrixBase::makeHouseholder( else { beta = ei_sqrt(ei_abs2(c0) + tailSqNorm); - if (ei_real(c0)>=0.) + if (ei_real(c0)>=RealScalar(0)) beta = -beta; essential = tail / (c0 - beta); tau = ei_conj((beta - c0) / beta); -- cgit v1.2.3