فهرست منبع

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

	Fixed compiler warning.
	* test/UtilTest.cc
Tatsuhiro Tsujikawa 17 سال پیش
والد
کامیت
837585e095
2فایلهای تغییر یافته به همراه7 افزوده شده و 2 حذف شده
  1. 5 0
      ChangeLog
  2. 2 2
      test/UtilTest.cc

+ 5 - 0
ChangeLog

@@ -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.

+ 2 - 2
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"));