aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/Redux.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2011-02-22 08:54:55 -0500
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2011-02-22 08:54:55 -0500
commit25579df2d4b38e434aee4cf0368bf4ffc8ac847d (patch)
treec809d5a6f42f587c4e4e6d2bef50fae6ee7bdcb5 /Eigen/src/Core/Redux.h
parent3884308da7f460ccb810a0bd7b10d38c052b2925 (diff)
'fix' a couple of clang -Wconstant-logical-operand warnings (still not convinced about the pertinence of that warning)
Diffstat (limited to 'Eigen/src/Core/Redux.h')
-rw-r--r--Eigen/src/Core/Redux.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/Redux.h b/Eigen/src/Core/Redux.h
index 25febb773..f9f5a95d5 100644
--- a/Eigen/src/Core/Redux.h
+++ b/Eigen/src/Core/Redux.h
@@ -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;