summaryrefslogtreecommitdiff
path: root/test/SingleFileAllocationIteratorTest.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-06-25 23:35:24 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-06-25 23:35:24 +0900
commit1b874268a067b4aba0e329768b82df635d7cae17 (patch)
treef72263f15286a6c3372d87571c261789ff8c87f7 /test/SingleFileAllocationIteratorTest.cc
parent4b03634f36b05c32737aeea8ca178f53f68052e8 (diff)
Use int64_t instead of off_t
Some classes such as DiskAdaptor, DiskWriter, FileAllocationIterator and ChecksumValidator are left unchanged.
Diffstat (limited to 'test/SingleFileAllocationIteratorTest.cc')
-rw-r--r--test/SingleFileAllocationIteratorTest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SingleFileAllocationIteratorTest.cc b/test/SingleFileAllocationIteratorTest.cc
index ace14d9f..3e3e4eb0 100644
--- a/test/SingleFileAllocationIteratorTest.cc
+++ b/test/SingleFileAllocationIteratorTest.cc
@@ -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