Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Sequence: static cast in test to silence warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bjude committed Sep 29, 2021
1 parent 8743aec commit 1782f28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing/sequence.cu
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ void TestSequenceNoSizeTConversion()
for (std::size_t i = 0; i < m.size(); ++i)
{
const ::Vector v = m[i];
ASSERT_EQUAL(v.x, i);
ASSERT_EQUAL(v.y, 2 * i);
ASSERT_EQUAL(static_cast<std::size_t>(v.x), i);
ASSERT_EQUAL(static_cast<std::size_t>(v.y), 2 * i);
}
}
DECLARE_UNITTEST(TestSequenceNoSizeTConversion);

0 comments on commit 1782f28

Please sign in to comment.