From 39b27fb65686d3e3f415a7f8254968faa8e02f39 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 22 Feb 2011 15:26:28 +0100 Subject: [PATCH] altivec compilation fix --- Eigen/src/Core/arch/AltiVec/Complex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/arch/AltiVec/Complex.h b/Eigen/src/Core/arch/AltiVec/Complex.h index d5667685d..f8498929d 100644 --- a/Eigen/src/Core/arch/AltiVec/Complex.h +++ b/Eigen/src/Core/arch/AltiVec/Complex.h @@ -136,7 +136,7 @@ template<> EIGEN_STRONG_INLINE std::complex predux(const Packe Packet4f b; b = (Packet4f) vec_sld(a.v, a.v, 8); b = padd(a.v, b); - return pfirst(Packet2cf(sum)); + return pfirst(Packet2cf(b)); } template<> EIGEN_STRONG_INLINE Packet2cf preduxp(const Packet2cf* vecs)