Browse Source

converted the argument to timeToText() in DNSSECTimeTest.overflow explicitly.
type conversion should be okay because we check the size of the type.
this is necessary to suppress compiler warnings.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac168@1971 e5f2f494-b856-4b98-b285-d166d9295462

JINMEI Tatuya 15 years ago
parent
commit
c415c9b1d5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/lib/dns/tests/dnssectime_unittest.cc

+ 2 - 1
src/lib/dns/tests/dnssectime_unittest.cc

@@ -64,7 +64,8 @@ TEST(DNSSECTimeTest, toText) {
 TEST(DNSSECTimeTest, overflow) {
     // Jan 1, Year 10,000.
     if (sizeof(time_t) > 4) {
-        EXPECT_THROW(timeToText(253402300800LL), InvalidTime);
+        EXPECT_THROW(timeToText(static_cast<time_t>(253402300800LL)),
+                     InvalidTime);
     }
 }