diff OrthancFramework/UnitTestsSources/JobsTests.cpp @ 4779:4f368230f32b

fix for msvc2008
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 30 Aug 2021 11:51:56 +0200
parents add0337b928a
children 0a38000b086d
line wrap: on
line diff
--- a/OrthancFramework/UnitTestsSources/JobsTests.cpp	Mon Aug 30 11:41:27 2021 +0200
+++ b/OrthancFramework/UnitTestsSources/JobsTests.cpp	Mon Aug 30 11:51:56 2021 +0200
@@ -1585,8 +1585,8 @@
     ASSERT_FALSE(SerializationToolbox::ParseInteger32(i, "ee"));
     ASSERT_TRUE(SerializationToolbox::ParseInteger32(i, "42"));  ASSERT_EQ(42, i);
     ASSERT_TRUE(SerializationToolbox::ParseInteger32(i, "-42"));  ASSERT_EQ(-42, i);
-    ASSERT_TRUE(SerializationToolbox::ParseInteger32(i, "-2147483648")); ASSERT_EQ(-2147483648, i);
-    ASSERT_TRUE(SerializationToolbox::ParseInteger32(i, "2147483647")); ASSERT_EQ(2147483647, i);
+    ASSERT_TRUE(SerializationToolbox::ParseInteger32(i, "-2147483648")); ASSERT_EQ(-2147483648l, i);
+    ASSERT_TRUE(SerializationToolbox::ParseInteger32(i, "2147483647")); ASSERT_EQ(2147483647l, i);
     ASSERT_FALSE(SerializationToolbox::ParseInteger32(i, "-2147483649"));
     ASSERT_FALSE(SerializationToolbox::ParseInteger32(i, "2147483648"));
     ASSERT_FALSE(SerializationToolbox::ParseInteger32(i, "-2\\-3\\-4"));
@@ -1623,7 +1623,7 @@
     ASSERT_FALSE(SerializationToolbox::ParseUnsignedInteger64(i, "ee"));
     ASSERT_TRUE(SerializationToolbox::ParseUnsignedInteger64(i, "42"));  ASSERT_EQ(42u, i);
     ASSERT_FALSE(SerializationToolbox::ParseUnsignedInteger64(i, "-42"));
-    ASSERT_TRUE(SerializationToolbox::ParseUnsignedInteger64(i, "4294967296")); ASSERT_EQ(4294967296llu, i);
+    ASSERT_TRUE(SerializationToolbox::ParseUnsignedInteger64(i, "4294967296")); ASSERT_EQ(4294967296lu, i);
     ASSERT_FALSE(SerializationToolbox::ParseUnsignedInteger64(i, "2\\3\\4"));
     ASSERT_TRUE(SerializationToolbox::ParseFirstUnsignedInteger64(i, "2\\3\\4"));  ASSERT_EQ(2u, i);
   }