Added cast to time_t.

This commit is contained in:
Tatsuhiro Tsujikawa 2011-01-29 21:36:00 +09:00
parent 2ba2511dd5
commit 7a6ec762ef

View File

@ -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");