2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

Fixed compiler warning.
	* test/UtilTest.cc
pull/1/head
Tatsuhiro Tsujikawa 2008-10-20 12:33:38 +00:00
parent 07419749f2
commit 837585e095
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed compiler warning.
* test/UtilTest.cc
2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Included cstdlib. This fixed the compile error with g++-4.3.2. Included cstdlib. This fixed the compile error with g++-4.3.2.

View File

@ -681,8 +681,8 @@ void UtilTest::testHttpGMT()
CPPUNIT_ASSERT_EQUAL((time_t)2147483647, CPPUNIT_ASSERT_EQUAL((time_t)2147483647,
Util::httpGMT("Tue, 2038-01-19 3:14:8 GMT")); Util::httpGMT("Tue, 2038-01-19 3:14:8 GMT"));
} else if(sizeof(time_t) == 8) { } else if(sizeof(time_t) == 8) {
CPPUNIT_ASSERT_EQUAL((time_t)2147483648, CPPUNIT_ASSERT_EQUAL((int64_t)2147483648,
Util::httpGMT("Tue, 2038-01-19 3:14:8 GMT")); (int64_t)Util::httpGMT("Tue, 2038-01-19 3:14:8 GMT"));
} }
CPPUNIT_ASSERT_EQUAL((time_t)-1, CPPUNIT_ASSERT_EQUAL((time_t)-1,
Util::httpGMT("Tue, 2008/10/10 23:33:33 UTC")); Util::httpGMT("Tue, 2008/10/10 23:33:33 UTC"));