From 0ea5e96f078d85fe4229784e6499d19c67271219 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 7 Dec 2015 21:01:13 +0200 Subject: [PATCH] Store offsets and sizes in PackSource as 64-bit ints --- source/packsource.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/packsource.h b/source/packsource.h index 6912a40..35ec8b8 100644 --- a/source/packsource.h +++ b/source/packsource.h @@ -25,7 +25,7 @@ public: struct FileInfo { std::string name; - unsigned size; + IO::SeekOffset size; }; private: @@ -49,7 +49,7 @@ private: private: std::string filename; IO::Seekable *io; - unsigned base_offset; + IO::SeekOffset base_offset; std::list files; public: @@ -57,7 +57,7 @@ private: const std::string &get_filename() const { return filename; } IO::Seekable *get_io() const { return io; } - unsigned get_base_offset() const { return base_offset; } + IO::SeekOffset get_base_offset() const { return base_offset; } void collect_files(FileMap &, const std::string &) const; }; @@ -77,8 +77,8 @@ private: private: const Pack &pack; std::string filename; - unsigned offset; - unsigned length; + IO::SeekOffset offset; + IO::SeekOffset length; bool collection; std::list objects; -- 2.45.2