mirror of
https://github.com/aria2/aria2.git
synced 2025-02-26 08:22:11 +00:00
Added cast to time_t.
This commit is contained in:
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
Block a user