'fix' a couple of clang -Wconstant-logical-operand warnings (still not convinced about the pertinence of that warning)

This commit is contained in:
Benoit Jacob
2011-02-22 08:54:55 -05:00
parent 3884308da7
commit 25579df2d4
2 changed files with 4 additions and 4 deletions

View File

@@ -216,7 +216,7 @@ struct redux_impl<Func, Derived, LinearVectorizedTraversal, NoUnrolling>
const Index packetSize = packet_traits<Scalar>::size;
const Index alignedStart = first_aligned(mat);
enum {
alignment = (Derived::Flags & DirectAccessBit) || (Derived::Flags & AlignedBit)
alignment = bool(Derived::Flags & DirectAccessBit) || bool(Derived::Flags & AlignedBit)
? Aligned : Unaligned
};
const Index alignedSize = ((size-alignedStart)/packetSize)*packetSize;