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

Fixed compiler warning.
	* test/UtilTest.cc
pull/1/head
Tatsuhiro Tsujikawa 2008-10-27 14:33:14 +00:00
parent 915aa676f8
commit 93edc7bd20
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed compiler warning.
* test/UtilTest.cc
2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Treat Cookie object as session cookie if expiry = 0 is given. Treat Cookie object as session cookie if expiry = 0 is given.

View File

@ -681,7 +681,7 @@ 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((int64_t)2147483648, CPPUNIT_ASSERT_EQUAL((int64_t)2147483648LL,
(int64_t)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,