changeset 4157:86e99e08ba52

fix compiler warnings
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 23 Aug 2020 14:38:45 +0200
parents d07cd8133e56
children 32ac045109a6
files OrthancFramework/UnitTestsSources/RestApiTests.cpp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/UnitTestsSources/RestApiTests.cpp	Sun Aug 23 14:08:59 2020 +0200
+++ b/OrthancFramework/UnitTestsSources/RestApiTests.cpp	Sun Aug 23 14:38:45 2020 +0200
@@ -908,11 +908,11 @@
   std::string s;
   b.Flatten(s);
   ASSERT_EQ(LARGE, s.size());
-  ASSERT_EQ(0, b.GetNumBytes());
+  ASSERT_EQ(0u, b.GetNumBytes());
   
   for (size_t i = 0; i < LARGE; i++)
   {
-    ASSERT_EQ('0' + (i % 10), s[i]);
+    ASSERT_EQ(static_cast<char>('0' + (i % 10)), s[i]);
   }
 
   b.Flatten(s);
@@ -956,7 +956,7 @@
     
     for (size_t i = 0; i < s.size(); i++)
     {
-      ASSERT_EQ('0' + (i % 10), s[i]);
+      ASSERT_EQ(static_cast<char>('0' + (i % 10)), s[i]);
     }  
   }
 }