diff --git a/ChangeLog b/ChangeLog index 6171be68..29624a55 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-10-20 Tatsuhiro Tsujikawa + + Fixed compiler warning. + * test/UtilTest.cc + 2008-10-20 Tatsuhiro Tsujikawa Included cstdlib. This fixed the compile error with g++-4.3.2. diff --git a/test/UtilTest.cc b/test/UtilTest.cc index d1019748..714ac13c 100644 --- a/test/UtilTest.cc +++ b/test/UtilTest.cc @@ -681,8 +681,8 @@ void UtilTest::testHttpGMT() CPPUNIT_ASSERT_EQUAL((time_t)2147483647, Util::httpGMT("Tue, 2038-01-19 3:14:8 GMT")); } else if(sizeof(time_t) == 8) { - CPPUNIT_ASSERT_EQUAL((time_t)2147483648, - Util::httpGMT("Tue, 2038-01-19 3:14:8 GMT")); + CPPUNIT_ASSERT_EQUAL((int64_t)2147483648, + (int64_t)Util::httpGMT("Tue, 2038-01-19 3:14:8 GMT")); } CPPUNIT_ASSERT_EQUAL((time_t)-1, Util::httpGMT("Tue, 2008/10/10 23:33:33 UTC"));