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