aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/mapped_matrix.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2016-02-05 21:46:39 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2016-02-05 21:46:39 +0100
commit5b2d287878d4f049c1ba6c55c1fcaac1129d6df0 (patch)
tree658e36843c96218621d3b83c12ba61df16da47ed /test/mapped_matrix.cpp
parente8e1d504d6cbeb47c33169a36c052aa21bea32ee (diff)
bug #779: allow non aligned buffers for buffers smaller than the requested alignment.
Diffstat (limited to 'test/mapped_matrix.cpp')
-rw-r--r--test/mapped_matrix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mapped_matrix.cpp b/test/mapped_matrix.cpp
index 7c7099792..88653e887 100644
--- a/test/mapped_matrix.cpp
+++ b/test/mapped_matrix.cpp
@@ -40,7 +40,7 @@ template<typename VectorType> void map_class_vector(const VectorType& m)
VERIFY_IS_EQUAL(ma1, ma3);
VERIFY_IS_EQUAL(ma1, ma4);
#ifdef EIGEN_VECTORIZE
- if(internal::packet_traits<Scalar>::Vectorizable)
+ if(internal::packet_traits<Scalar>::Vectorizable && size>=AlignedMax)
VERIFY_RAISES_ASSERT((Map<VectorType,AlignedMax>(array3unaligned, size)))
#endif