Mercurial > hg > orthanc
diff OrthancFramework/UnitTestsSources/ImageProcessingTests.cpp @ 4958:924b15d983c7
fix signs in unit tests
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 23 Mar 2022 12:04:33 +0100 |
parents | 664e383b68ad |
children | fcdf399f9fc0 |
line wrap: on
line diff
--- a/OrthancFramework/UnitTestsSources/ImageProcessingTests.cpp Wed Mar 23 11:48:47 2022 +0100 +++ b/OrthancFramework/UnitTestsSources/ImageProcessingTests.cpp Wed Mar 23 12:04:33 2022 +0100 @@ -1247,7 +1247,7 @@ ASSERT_EQ(6u, segments.GetSize()); for (size_t i = 0; i < segments.GetSize(); i++) { - ASSERT_EQ(100 + i, segments.GetY(i)); + ASSERT_EQ(100 + static_cast<int>(i), segments.GetY(i)); ASSERT_EQ(10, segments.GetX1(i)); ASSERT_EQ(10, segments.GetX2(i)); } @@ -1311,7 +1311,7 @@ for (size_t i = 0; i < segments.GetSize(); i++) { - ASSERT_EQ(i + 50, segments.GetY(i)); + ASSERT_EQ(50 + static_cast<int>(i), segments.GetY(i)); ASSERT_EQ(10, segments.GetX1(i)); ASSERT_EQ(200, segments.GetX2(i)); }