diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2011-03-10 10:17:17 -0500 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2011-03-10 10:17:17 -0500 |
commit | dc36efbb8fca6f5cfce5fcd26402544f41402808 (patch) | |
tree | dca98e7cdc9e4ee8ba97ea930d0eb60c221d2e4e /Eigen/src/Core/Map.h | |
parent | 9a47fb289bfa025c33db4f5773876a8792c00f47 (diff) |
fix bug #219: Map Flags AlignedBit was miscomputed, didn't account for EIGEN_ALIGN
Diffstat (limited to 'Eigen/src/Core/Map.h')
-rw-r--r-- | Eigen/src/Core/Map.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/Map.h b/Eigen/src/Core/Map.h index b40bc2a50..692d0a179 100644 --- a/Eigen/src/Core/Map.h +++ b/Eigen/src/Core/Map.h @@ -95,7 +95,7 @@ struct traits<Map<PlainObjectType, MapOptions, StrideType> > HasNoInnerStride = InnerStrideAtCompileTime == 1, HasNoOuterStride = StrideType::OuterStrideAtCompileTime == 0, HasNoStride = HasNoInnerStride && HasNoOuterStride, - IsAligned = int(int(MapOptions)&Aligned)==Aligned, + IsAligned = bool(EIGEN_ALIGN) && ((int(MapOptions)&Aligned)==Aligned), IsDynamicSize = PlainObjectType::SizeAtCompileTime==Dynamic, KeepsPacketAccess = bool(HasNoInnerStride) && ( bool(IsDynamicSize) |