From 1b874268a067b4aba0e329768b82df635d7cae17 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 25 Jun 2012 23:35:24 +0900 Subject: Use int64_t instead of off_t Some classes such as DiskAdaptor, DiskWriter, FileAllocationIterator and ChecksumValidator are left unchanged. --- test/MultiFileAllocationIteratorTest.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/MultiFileAllocationIteratorTest.cc') diff --git a/test/MultiFileAllocationIteratorTest.cc b/test/MultiFileAllocationIteratorTest.cc index 03237451..32b1bbb8 100644 --- a/test/MultiFileAllocationIteratorTest.cc +++ b/test/MultiFileAllocationIteratorTest.cc @@ -209,11 +209,11 @@ void MultiFileAllocationIteratorTest::testAllocate() while(!itr->finished()) { itr->allocateChunk(); } - CPPUNIT_ASSERT_EQUAL((off_t)length1, File(fileEntry1->getPath()).size()); - CPPUNIT_ASSERT_EQUAL((off_t)length2, File(fileEntry2->getPath()).size()); - CPPUNIT_ASSERT_EQUAL((off_t)length3, File(fileEntry3->getPath()).size()); + CPPUNIT_ASSERT_EQUAL((int64_t)length1, File(fileEntry1->getPath()).size()); + CPPUNIT_ASSERT_EQUAL((int64_t)length2, File(fileEntry2->getPath()).size()); + CPPUNIT_ASSERT_EQUAL((int64_t)length3, File(fileEntry3->getPath()).size()); CPPUNIT_ASSERT(!File(fileEntry4->getPath()).isFile()); - CPPUNIT_ASSERT_EQUAL((off_t)length5, File(fileEntry5->getPath()).size()); + CPPUNIT_ASSERT_EQUAL((int64_t)length5, File(fileEntry5->getPath()).size()); CPPUNIT_ASSERT(!File(fileEntry6->getPath()).isFile()); } catch(Exception& e) { CPPUNIT_FAIL(e.stackTrace()); -- cgit