mirror of https://github.com/aria2/aria2
2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed compiler warning. * test/UtilTest.ccpull/1/head
parent
07419749f2
commit
837585e095
|
@ -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>
|
||||
|
||||
Included cstdlib. This fixed the compile error with g++-4.3.2.
|
||||
|
|
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue