Mercurial > hg > orthanc
changeset 4958:924b15d983c7
fix signs in unit tests
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 23 Mar 2022 12:04:33 +0100 |
parents | 964bbf5cb365 |
children | 29bcc3f47f2a |
files | OrthancFramework/UnitTestsSources/ImageProcessingTests.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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)); }