mirror of https://github.com/aria2/aria2
Added cast to time_t.
parent
2ba2511dd5
commit
7a6ec762ef
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue