Use int64_t instead of off_t
Some classes such as DiskAdaptor, DiskWriter, FileAllocationIterator and ChecksumValidator are left unchanged.
This commit is contained in:
@@ -32,7 +32,7 @@ void SingleFileAllocationIteratorTest::testAllocate()
|
||||
of.close();
|
||||
|
||||
File x(fn);
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)10, x.size());
|
||||
CPPUNIT_ASSERT_EQUAL((int64_t)10, x.size());
|
||||
|
||||
DefaultDiskWriter writer(fn);
|
||||
off_t offset = 10;
|
||||
@@ -47,7 +47,7 @@ void SingleFileAllocationIteratorTest::testAllocate()
|
||||
itr.allocateChunk();
|
||||
}
|
||||
File f(fn);
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)40960, f.size());
|
||||
CPPUNIT_ASSERT_EQUAL((int64_t)40960, f.size());
|
||||
}
|
||||
|
||||
} // namespace aria2
|
||||
|
||||
Reference in New Issue
Block a user