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/SingleFileAllocationIterator.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/SingleFileAllocationIterator.h')
| -rw-r--r-- | src/SingleFileAllocationIterator.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/SingleFileAllocationIterator.h b/src/SingleFileAllocationIterator.h index a3d12602..b905aaea 100644 --- a/src/SingleFileAllocationIterator.h +++ b/src/SingleFileAllocationIterator.h @@ -48,11 +48,14 @@ private: off_t offset_; - uint64_t totalLength_; + off_t totalLength_; unsigned char* buffer_; public: - SingleFileAllocationIterator(BinaryStream* stream, off_t offset, uint64_t totalLength); + SingleFileAllocationIterator + (BinaryStream* stream, + off_t offset, + off_t totalLength); virtual ~SingleFileAllocationIterator(); @@ -65,7 +68,7 @@ public: return offset_; } - virtual uint64_t getTotalLength() + virtual off_t getTotalLength() { return totalLength_; } |
