Mercurial > hg > orthanc
diff UnitTestsSources/DicomMapTests.cpp @ 2829:61fdb06e389a
fix warnings
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 20 Sep 2018 10:30:49 +0200 |
parents | d88970f1ffbf |
children | da12ba232119 |
line wrap: on
line diff
--- a/UnitTestsSources/DicomMapTests.cpp Thu Sep 20 08:57:46 2018 +0200 +++ b/UnitTestsSources/DicomMapTests.cpp Thu Sep 20 10:30:49 2018 +0200 @@ -353,8 +353,8 @@ ASSERT_FALSE(m.GetValue(DICOM_TAG_PATIENT_NAME).ParseUnsignedInteger32(k)); ASSERT_FALSE(m.GetValue(DICOM_TAG_PATIENT_NAME).ParseUnsignedInteger64(l)); ASSERT_FLOAT_EQ(-2147483648.0f, f); - ASSERT_DOUBLE_EQ(-2147483648.0, d); - ASSERT_EQ(-2147483648, i); + ASSERT_DOUBLE_EQ(-2147483648.0, d); + ASSERT_EQ(static_cast<int32_t>(-2147483648ll), i); ASSERT_EQ(-2147483648ll, j); // -2**31 - 1