Skip to content
Snippets Groups Projects
Commit 02610a79 authored by Lorenzo Moneta's avatar Lorenzo Moneta
Browse files

Copy from Vc git the patch to fix integer comparison warning

parent 543dcc5c
No related branches found
No related tags found
No related merge requests found
......@@ -283,17 +283,19 @@ template<typename V> void testCCtor()
template<typename V> void testCopyAssignment()
{
typedef typename V::EntryType T;
Memory<V, 99> m1;
m1.setZero();
Memory<V, 99> m2(m1);
for (size_t i = 0; i < m2.entriesCount(); ++i) {
COMPARE(m2[i], 0);
COMPARE(m2[i], T(0));
m2[i] += 1;
}
m1 = m2;
for (size_t i = 0; i < m2.entriesCount(); ++i) {
COMPARE(m1[i], 1);
COMPARE(m1[i], T(1));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment