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 /test | |
parent | a18a1be42d35b9de82949eaa54ce5196002da391 (diff) |
better fix for gcc 4.6.0 / ptrdiff_t, as suggested by Benoit
Diffstat (limited to 'test')
-rw-r--r-- | test/mapstride.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mapstride.cpp b/test/mapstride.cpp index 6c3097485..e2bda99ce 100644 --- a/test/mapstride.cpp +++ b/test/mapstride.cpp @@ -38,7 +38,7 @@ template<int Alignment,typename VectorType> void map_class_vector(const VectorTy Scalar* a_array = internal::aligned_new<Scalar>(arraysize+1); Scalar* array = a_array; if(Alignment!=Aligned) - array = (Scalar*)(std::ptrdiff_t(a_array) + (internal::packet_traits<Scalar>::AlignedOnScalar?sizeof(Scalar):sizeof(typename NumTraits<Scalar>::Real))); + array = (Scalar*)(ptrdiff_t(a_array) + (internal::packet_traits<Scalar>::AlignedOnScalar?sizeof(Scalar):sizeof(typename NumTraits<Scalar>::Real))); { Map<VectorType, Alignment, InnerStride<3> > map(array, size); @@ -77,7 +77,7 @@ template<int Alignment,typename MatrixType> void map_class_matrix(const MatrixTy Scalar* a_array = internal::aligned_new<Scalar>(arraysize+1); Scalar* array = a_array; if(Alignment!=Aligned) - array = (Scalar*)(std::ptrdiff_t(a_array) + (internal::packet_traits<Scalar>::AlignedOnScalar?sizeof(Scalar):sizeof(typename NumTraits<Scalar>::Real))); + array = (Scalar*)(ptrdiff_t(a_array) + (internal::packet_traits<Scalar>::AlignedOnScalar?sizeof(Scalar):sizeof(typename NumTraits<Scalar>::Real))); // test no inner stride and some dynamic outer stride { |