diff options
author | Thomas Capricelli <orzel@freehackers.org> | 2011-05-05 18:48:18 +0200 |
---|---|---|
committer | Thomas Capricelli <orzel@freehackers.org> | 2011-05-05 18:48:18 +0200 |
commit | 883219041fb070be4f7bf4e4fc8c1eb475cea34d (patch) | |
tree | 3d98d1fa789477730cfc5a0454eae50ca9217187 /Eigen/src/Core/arch/AltiVec/Complex.h | |
parent | a18a1be42d35b9de82949eaa54ce5196002da391 (diff) |
better fix for gcc 4.6.0 / ptrdiff_t, as suggested by Benoit
Diffstat (limited to 'Eigen/src/Core/arch/AltiVec/Complex.h')
-rw-r--r-- | Eigen/src/Core/arch/AltiVec/Complex.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/arch/AltiVec/Complex.h b/Eigen/src/Core/arch/AltiVec/Complex.h index 5d16c9430..f8adf1b63 100644 --- a/Eigen/src/Core/arch/AltiVec/Complex.h +++ b/Eigen/src/Core/arch/AltiVec/Complex.h @@ -70,7 +70,7 @@ template<> EIGEN_STRONG_INLINE Packet2cf pset1<Packet2cf>(const std::complex<flo { Packet2cf res; /* On AltiVec we cannot load 64-bit registers, so wa have to take care of alignment */ - if((std::ptrdiff_t(&from) % 16) == 0) + if((ptrdiff_t(&from) % 16) == 0) res.v = pload<Packet4f>((const float *)&from); else res.v = ploadu<Packet4f>((const float *)&from); |