From 5bb9eaec17d4cc3941c8c9e9df9cb69bc389ea90 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 3 Dec 2009 14:51:17 +0000 Subject: [PATCH] 2009-12-03 Tatsuhiro Tsujikawa Fixed type of tail to uint64_t * src/util.cc --- ChangeLog | 5 +++++ src/util.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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) {