Mercurial > hg > orthanc
diff UnitTestsSources/ServerIndexTests.cpp @ 2828:859a4950d48f
fix warnings
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 20 Sep 2018 08:57:46 +0200 |
parents | c277e0421200 |
children | e5e3253a1164 |
line wrap: on
line diff
--- a/UnitTestsSources/ServerIndexTests.cpp Wed Sep 19 21:10:49 2018 +0200 +++ b/UnitTestsSources/ServerIndexTests.cpp Thu Sep 20 08:57:46 2018 +0200 @@ -897,9 +897,9 @@ context.GetIndex().ComputeStatistics(tmp); ASSERT_EQ(1, tmp["CountInstances"].asInt()); ASSERT_EQ(dicom1.GetCompressedSize() + json1.GetCompressedSize(), - boost::lexical_cast<int>(tmp["TotalDiskSize"].asString())); + boost::lexical_cast<size_t>(tmp["TotalDiskSize"].asString())); ASSERT_EQ(dicom1.GetUncompressedSize() + json1.GetUncompressedSize(), - boost::lexical_cast<int>(tmp["TotalUncompressedSize"].asString())); + boost::lexical_cast<size_t>(tmp["TotalUncompressedSize"].asString())); context.ReadDicomAsJson(tmp, id); ASSERT_EQ("name", tmp["0010,0010"]["Value"].asString()); @@ -932,9 +932,9 @@ context.GetIndex().ComputeStatistics(tmp); ASSERT_EQ(1, tmp["CountInstances"].asInt()); ASSERT_EQ(dicom2.GetCompressedSize() + json2.GetCompressedSize(), - boost::lexical_cast<int>(tmp["TotalDiskSize"].asString())); + boost::lexical_cast<size_t>(tmp["TotalDiskSize"].asString())); ASSERT_EQ(dicom2.GetUncompressedSize() + json2.GetUncompressedSize(), - boost::lexical_cast<int>(tmp["TotalUncompressedSize"].asString())); + boost::lexical_cast<size_t>(tmp["TotalUncompressedSize"].asString())); if (overwrite) {