bug #921: fix utilization of bitwise operation on enums in first_aligned

(grafted from f5f6e2c6f46a8999ee36ce0c7adc62098d8d93d2
)
This commit is contained in:
Gael Guennebaud 2014-12-19 14:41:59 +01:00
parent a5a3a994c8
commit 8efa5bb439

View File

@ -466,9 +466,8 @@ template<typename T, bool Align> inline void conditional_aligned_delete_auto(T *
template<typename Scalar, typename Index> template<typename Scalar, typename Index>
static inline Index first_aligned(const Scalar* array, Index size) static inline Index first_aligned(const Scalar* array, Index size)
{ {
enum { PacketSize = packet_traits<Scalar>::size, static const Index PacketSize = packet_traits<Scalar>::size;
PacketAlignedMask = PacketSize-1 static const Index PacketAlignedMask = PacketSize-1;
};
if(PacketSize==1) if(PacketSize==1)
{ {