mirror of https://github.com/aria2/aria2
2010-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that downloading > 4GB file fails on 32bit systems. * src/HttpRequest.cc * src/HttpRequestCommand.ccpull/1/head
parent
236e64cb25
commit
6e88cae02b
|
@ -1,3 +1,9 @@
|
|||
2010-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Fixed the bug that downloading > 4GB file fails on 32bit systems.
|
||||
* src/HttpRequest.cc
|
||||
* src/HttpRequestCommand.cc
|
||||
|
||||
2010-10-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Use unnamed namespace instead of static keyword.
|
||||
|
|
|
@ -59,7 +59,7 @@ HttpRequest::HttpRequest():contentEncodingEnabled_(true),
|
|||
userAgent_(USER_AGENT),
|
||||
noCache_(true),
|
||||
acceptGzip_(false),
|
||||
endOffsetOverride_(false)
|
||||
endOffsetOverride_(0)
|
||||
{}
|
||||
|
||||
void HttpRequest::setSegment(const SharedHandle<Segment>& segment)
|
||||
|
|
|
@ -188,7 +188,8 @@ bool HttpRequestCommand::executeInternal() {
|
|||
getPieceStorage()->getNextUsedIndex(segment->getIndex());
|
||||
endOffset = std::min
|
||||
(static_cast<off_t>(getFileEntry()->getLength()),
|
||||
getFileEntry()->gtoloff(segment->getSegmentLength()*nextIndex));
|
||||
getFileEntry()->gtoloff
|
||||
(static_cast<off_t>(segment->getSegmentLength())*nextIndex));
|
||||
}
|
||||
SharedHandle<HttpRequest> httpRequest
|
||||
(createHttpRequest(getRequest(),
|
||||
|
|
Loading…
Reference in New Issue