From 7a6ec762ef44376d209ab20275dd78d468d7af3e Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 29 Jan 2011 21:36:00 +0900 Subject: [PATCH] Added cast to time_t. --- test/FileTest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/FileTest.cc b/test/FileTest.cc index fc9e19c8..bb03012e 100644 --- a/test/FileTest.cc +++ b/test/FileTest.cc @@ -242,7 +242,7 @@ void FileTest::testUtime() a2_struct_stat buf; CPPUNIT_ASSERT(0 == a2stat(f.getPath().c_str(), &buf)); - CPPUNIT_ASSERT_EQUAL((time_t)atime, buf.st_atime); + CPPUNIT_ASSERT_EQUAL((time_t)atime, (time_t)buf.st_atime); CPPUNIT_ASSERT_EQUAL((time_t)mtime, f.getModifiedTime().getTime()); File notFound(A2_TEST_OUT_DIR"/aria2_FileTest_testUTime_notFound");