mirror of https://github.com/aria2/aria2
2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed type of tail to uint64_t * src/util.ccpull/1/head
parent
4156debe5c
commit
5bb9eaec17
|
@ -1,3 +1,8 @@
|
||||||
|
2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Fixed type of tail to uint64_t
|
||||||
|
* src/util.cc
|
||||||
|
|
||||||
2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Added --interface option. This feature binds sockets to given
|
Added --interface option. This feature binds sockets to given
|
||||||
|
|
|
@ -565,7 +565,7 @@ void parsePrioritizePieceRange
|
||||||
} else if(util::startsWith(*i, "tail=")) {
|
} else if(util::startsWith(*i, "tail=")) {
|
||||||
std::string sizestr = std::string((*i).begin()+(*i).find("=")+1,
|
std::string sizestr = std::string((*i).begin()+(*i).find("=")+1,
|
||||||
(*i).end());
|
(*i).end());
|
||||||
size_t tail = std::max((int64_t)0, getRealSize(sizestr));
|
uint64_t tail = std::max((int64_t)0, getRealSize(sizestr));
|
||||||
for(std::vector<SharedHandle<FileEntry> >::const_iterator fi =
|
for(std::vector<SharedHandle<FileEntry> >::const_iterator fi =
|
||||||
fileEntries.begin(); fi != fileEntries.end(); ++fi) {
|
fileEntries.begin(); fi != fileEntries.end(); ++fi) {
|
||||||
if((*fi)->getLength() == 0) {
|
if((*fi)->getLength() == 0) {
|
||||||
|
|
Loading…
Reference in New Issue