aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/ijar
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2016-04-01 09:13:00 +0000
committerGravatar Klaus Aehlig <aehlig@google.com>2016-04-01 12:16:54 +0000
commit97786962419caa1566e49d911b985c400d4367f5 (patch)
tree81cc1c064dc350df68d4d76ee095e1425f7c41b5 /third_party/ijar
parent53161ceb32ace16542b57192055e955aec925292 (diff)
ijar: cast to size_t instead of int to avoid sign-compare warning.
-- MOS_MIGRATED_REVID=118761993
Diffstat (limited to 'third_party/ijar')
-rw-r--r--third_party/ijar/zip.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/ijar/zip.cc b/third_party/ijar/zip.cc
index e875b4fcbc..961a619a54 100644
--- a/third_party/ijar/zip.cc
+++ b/third_party/ijar/zip.cc
@@ -429,8 +429,8 @@ int InputZipFile::ProcessLocalFileEntry(
}
}
- if (static_cast<int>(p - zipdata_in_) >
- static_cast<int>(bytes_unmapped_ + MAX_MAPPED_REGION)) {
+ size_t bytes_processed = p - zipdata_in_;
+ if (bytes_processed > bytes_unmapped_ + MAX_MAPPED_REGION) {
input_file_->Discard(MAX_MAPPED_REGION);
bytes_unmapped_ += MAX_MAPPED_REGION;
}