From 3585ff585e420a3e499d848868fe7ec74602018f Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Wed, 25 May 2016 22:09:19 -0700 Subject: [PATCH] Silenced a compilation warning --- Eigen/src/Core/arch/CUDA/PacketMathHalf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Core/arch/CUDA/PacketMathHalf.h b/Eigen/src/Core/arch/CUDA/PacketMathHalf.h index 031369d9d..f761c938a 100644 --- a/Eigen/src/Core/arch/CUDA/PacketMathHalf.h +++ b/Eigen/src/Core/arch/CUDA/PacketMathHalf.h @@ -360,11 +360,11 @@ template<> EIGEN_STRONG_INLINE Packet8h ploadu(const Eigen::half* from } template<> EIGEN_STRONG_INLINE void pstore(Eigen::half* to, const Packet8h& from) { - _mm_store_si128((__m128i*)to, from.x); + _mm_store_si128(reinterpret_cast<__m128i*>(to), from.x); } template<> EIGEN_STRONG_INLINE void pstoreu(Eigen::half* to, const Packet8h& from) { - _mm_storeu_si128((__m128i*)to, from.x); + _mm_storeu_si128(reinterpret_cast<__m128i*>(to), from.x); } template<> EIGEN_STRONG_INLINE Packet8h