diff --git a/ChangeLog b/ChangeLog index 4a6a598f..ce7b2a53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-12-03 Tatsuhiro Tsujikawa + + Fixed type of tail to uint64_t + * src/util.cc + 2009-12-03 Tatsuhiro Tsujikawa Added --interface option. This feature binds sockets to given diff --git a/src/util.cc b/src/util.cc index 35c56158..18743c48 100644 --- a/src/util.cc +++ b/src/util.cc @@ -565,7 +565,7 @@ void parsePrioritizePieceRange } else if(util::startsWith(*i, "tail=")) { std::string sizestr = std::string((*i).begin()+(*i).find("=")+1, (*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 >::const_iterator fi = fileEntries.begin(); fi != fileEntries.end(); ++fi) { if((*fi)->getLength() == 0) {