diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-12-07 22:57:34 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-12-09 21:39:43 +0900 |
| commit | 12988e5282ef52a2806cbaca9f4074698f35e399 (patch) | |
| tree | 7a8d5a65a8e8478ba5855e84a1077baee1a2028d /src/FileEntry.h | |
| parent | f25e67b0178511b26d55642f215a095321a169a8 (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/FileEntry.h')
| -rw-r--r-- | src/FileEntry.h | 8 |
1 files changed, 4 insertions, 4 deletions
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<std::string> uris_; std::deque<std::string> spentUris_; - uint64_t length_; + off_t length_; off_t offset_; bool requested_; std::deque<SharedHandle<Request> > 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<std::string>& uris = std::vector<std::string>()); ~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_; } |
