From 12988e5282ef52a2806cbaca9f4074698f35e399 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 7 Dec 2011 22:57:34 +0900 Subject: 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. --- src/FileEntry.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/FileEntry.h') diff --git a/src/FileEntry.h b/src/FileEntry.h index c77ca47a..1f3385ba 100644 --- a/src/FileEntry.h +++ b/src/FileEntry.h @@ -61,7 +61,7 @@ private: std::string path_; std::deque uris_; std::deque spentUris_; - uint64_t length_; + off_t length_; off_t offset_; bool requested_; std::deque > requestPool_; @@ -79,7 +79,7 @@ private: public: FileEntry(); - FileEntry(const std::string& path, uint64_t length, off_t offset, + FileEntry(const std::string& path, off_t length, off_t offset, const std::vector& uris = std::vector()); ~FileEntry(); @@ -94,9 +94,9 @@ public: void setPath(const std::string& path); - uint64_t getLength() const { return length_; } + off_t getLength() const { return length_; } - void setLength(uint64_t length) { length_ = length; } + void setLength(off_t length) { length_ = length; } off_t getOffset() const { return offset_; } -- cgit