--- a/Eigen/src/Core/arch/NEON/PacketMath.h +++ b/Eigen/src/Core/arch/NEON/PacketMath.h @@ -1668,7 +1668,7 @@ template<> EIGEN_STRONG_INLINE Packet4c pload(const int8_t* from) { Packet4c res; - memcpy(&res, from, sizeof(Packet4c)); + memcpy(static_cast(&res), from, sizeof(Packet4c)); return res; } template<> EIGEN_STRONG_INLINE Packet8c pload(const int8_t* from) @@ -1678,7 +1678,7 @@ template<> EIGEN_STRONG_INLINE Packet4uc pload(const uint8_t* from) { Packet4uc res; - memcpy(&res, from, sizeof(Packet4uc)); + memcpy(static_cast(&res), from, sizeof(Packet4uc)); return res; } template<> EIGEN_STRONG_INLINE Packet8uc pload(const uint8_t* from) @@ -1713,7 +1713,7 @@ template<> EIGEN_STRONG_INLINE Packet4c ploadu(const int8_t* from) { Packet4c res; - memcpy(&res, from, sizeof(Packet4c)); + memcpy(static_cast(&res), from, sizeof(Packet4c)); return res; } template<> EIGEN_STRONG_INLINE Packet8c ploadu(const int8_t* from) @@ -1723,7 +1723,7 @@ template<> EIGEN_STRONG_INLINE Packet4uc ploadu(const uint8_t* from) { Packet4uc res; - memcpy(&res, from, sizeof(Packet4uc)); + memcpy(static_cast(&res), from, sizeof(Packet4uc)); return res; } template<> EIGEN_STRONG_INLINE Packet8uc ploadu(const uint8_t* from)