summaryrefslogtreecommitdiff
path: root/src/SingleFileAllocationIterator.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-09-10 11:46:43 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-09-10 11:46:43 +0000
commit6e7dd1650e4f85a8fc7b942e5310f3c9c6fed626 (patch)
treeddfe47ba8e9f1db8abbe215224beb84ea25c51fe /src/SingleFileAllocationIterator.cc
parentd687886c24eb0d8325e0568f4a6ed304c4011966 (diff)
2010-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Make finished() return true only when offset == totalLength. * src/AdaptiveFileAllocationIterator.cc * src/SingleFileAllocationIterator.cc
Diffstat (limited to 'src/SingleFileAllocationIterator.cc')
-rw-r--r--src/SingleFileAllocationIterator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SingleFileAllocationIterator.cc b/src/SingleFileAllocationIterator.cc
index b67ce9cd..019c2ce7 100644
--- a/src/SingleFileAllocationIterator.cc
+++ b/src/SingleFileAllocationIterator.cc
@@ -84,7 +84,7 @@ void SingleFileAllocationIterator::allocateChunk()
bool SingleFileAllocationIterator::finished()
{
- return (uint64_t)offset_ >= totalLength_;
+ return (uint64_t)offset_ == totalLength_;
}
} // namespace aria2