From 837585e095363ec294f364178cae75d3fe94f604 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 20 Oct 2008 12:33:38 +0000 Subject: [PATCH] 2008-10-20 Tatsuhiro Tsujikawa Fixed compiler warning. * test/UtilTest.cc --- ChangeLog | 5 +++++ test/UtilTest.cc | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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"));