changeset 4158:32ac045109a6

fix compiler warnings
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 23 Aug 2020 14:46:40 +0200
parents 86e99e08ba52
children 2e540919aac9 77255a09883b
files OrthancFramework/UnitTestsSources/FromDcmtkTests.cpp OrthancFramework/UnitTestsSources/RestApiTests.cpp
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/UnitTestsSources/FromDcmtkTests.cpp	Sun Aug 23 14:38:45 2020 +0200
+++ b/OrthancFramework/UnitTestsSources/FromDcmtkTests.cpp	Sun Aug 23 14:46:40 2020 +0200
@@ -2168,7 +2168,7 @@
                     a == DicomTransferSyntax_JPEGProcess2_4 ||
                     a == DicomTransferSyntax_JPEGLSLossy);
       
-      printf("SIZE: %lu\n", t.size());
+      printf("SIZE: %d\n", static_cast<int>(t.size()));
       if (sourceUid == IDicomTranscoder::GetSopInstanceUid(target.GetParsed()))
       {
         ASSERT_FALSE(lossy);
--- a/OrthancFramework/UnitTestsSources/RestApiTests.cpp	Sun Aug 23 14:38:45 2020 +0200
+++ b/OrthancFramework/UnitTestsSources/RestApiTests.cpp	Sun Aug 23 14:46:40 2020 +0200
@@ -1034,7 +1034,7 @@
                         const void* bodyData,
                         size_t bodySize)
     {
-      printf("received %lu\n", bodySize);
+      printf("received %d\n", static_cast<int>(bodySize));
 
       const uint8_t* b = reinterpret_cast<const uint8_t*>(bodyData);