diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-12-03 14:51:17 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-12-03 14:51:17 +0000 |
| commit | 5bb9eaec17d4cc3941c8c9e9df9cb69bc389ea90 (patch) | |
| tree | f75d95d3cf08c4b7d891ce32cf3c395562b55985 | |
| parent | 4156debe5cdb617e25f6c974c95270dc1ce345de (diff) | |
2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed type of tail to uint64_t
* src/util.cc
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | src/util.cc | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,10 @@ 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> + Added --interface option. This feature binds sockets to given interface. You can specify interface name, IP address and hostname. 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<SharedHandle<FileEntry> >::const_iterator fi = fileEntries.begin(); fi != fileEntries.end(); ++fi) { if((*fi)->getLength() == 0) { |
