summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-12-07 22:57:34 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-12-09 21:39:43 +0900
commit12988e5282ef52a2806cbaca9f4074698f35e399 (patch)
tree7a8d5a65a8e8478ba5855e84a1077baee1a2028d /src/util.h
parentf25e67b0178511b26d55642f215a095321a169a8 (diff)
Replaced uint64_t with off_t or int64_t.
Since off_t is int64_t with LFS, we cannot take advantage of extra capacity of uint64_t.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/util.h b/src/util.h
index 1c357cb3..33bd51b7 100644
--- a/src/util.h
+++ b/src/util.h
@@ -274,10 +274,6 @@ uint32_t parseUInt(const std::string& s, int base = 10);
bool parseLLIntNoThrow(int64_t& res, const std::string& s, int base = 10);
int64_t parseLLInt(const std::string& s, int base = 10);
-// Valid range: [0, INT64_MAX]
-bool parseULLIntNoThrow(uint64_t& res, const std::string& s, int base = 10);
-uint64_t parseULLInt(const std::string& s, int base = 10);
-
void parseIntSegments(SegList<int>& sgl, const std::string& src);
// Parses string which specifies the range of piece index for higher
@@ -296,7 +292,7 @@ void parsePrioritizePieceRange
(std::vector<size_t>& result, const std::string& src,
const std::vector<SharedHandle<FileEntry> >& fileEntries,
size_t pieceLength,
- uint64_t defaultSize = 1048576 /* 1MiB */);
+ int64_t defaultSize = 1048576LL /* 1MiB */);
// Converts ISO/IEC 8859-1 string src to utf-8.
std::string iso8859ToUtf8(const std::string& src);