summaryrefslogtreecommitdiff
path: root/tools/zipalign/ZipFile.cpp
diff options
context:
space:
mode:
author Tianjie Xu <xunchang@google.com> 2020-04-04 20:00:20 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-04-04 20:00:20 +0000
commit0889aaeeae27a59ee8ddfea4f2baa67179fd23bb (patch)
tree7353a937ec8be30f3a34306c54f69a642c6fd0fb /tools/zipalign/ZipFile.cpp
parent0447be9904d1f27981686c9574412a49378b84dc (diff)
parent2751d2b8f3a55b3cdd853510b4d5aa308f8c53c8 (diff)
Merge "Change the parameter type of offset in read"
Diffstat (limited to 'tools/zipalign/ZipFile.cpp')
-rw-r--r--tools/zipalign/ZipFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/zipalign/ZipFile.cpp b/tools/zipalign/ZipFile.cpp
index 63fb962767..88505b7508 100644
--- a/tools/zipalign/ZipFile.cpp
+++ b/tools/zipalign/ZipFile.cpp
@@ -1221,7 +1221,7 @@ class FileReader : public zip_archive::Reader {
FileReader(FILE* fp) : Reader(), fp_(fp), current_offset_(0) {
}
- bool ReadAtOffset(uint8_t* buf, size_t len, uint32_t offset) const {
+ bool ReadAtOffset(uint8_t* buf, size_t len, off64_t offset) const {
// Data is usually requested sequentially, so this helps avoid pointless
// fseeks every time we perform a read. There's an impedence mismatch
// here because the original API was designed around pread and pwrite.
@@ -1244,7 +1244,7 @@ class FileReader : public zip_archive::Reader {
private:
FILE* fp_;
- mutable uint32_t current_offset_;
+ mutable off64_t current_offset_;
};
// free the memory when you're done