aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/ijar
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2016-03-30 14:51:26 +0000
committerGravatar Klaus Aehlig <aehlig@google.com>2016-03-30 15:25:53 +0000
commit0e7d35c1fa2b4e8590d616bf7226382cbe5b0438 (patch)
tree4d067e13d290b26c19c6b98f398c43f9e962daa0 /third_party/ijar
parent14cf129644bb18bfde3b4acd78fdab7b7de76a21 (diff)
Fix comparison warning in ijar
It's too much annoyance to see that error message in Bazel bootstrap. -- MOS_MIGRATED_REVID=118572214
Diffstat (limited to 'third_party/ijar')
-rw-r--r--third_party/ijar/zip.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/third_party/ijar/zip.cc b/third_party/ijar/zip.cc
index 3b3efcf7ee..e875b4fcbc 100644
--- a/third_party/ijar/zip.cc
+++ b/third_party/ijar/zip.cc
@@ -429,7 +429,8 @@ int InputZipFile::ProcessLocalFileEntry(
}
}
- if (p - zipdata_in_ > bytes_unmapped_ + MAX_MAPPED_REGION) {
+ if (static_cast<int>(p - zipdata_in_) >
+ static_cast<int>(bytes_unmapped_ + MAX_MAPPED_REGION)) {
input_file_->Discard(MAX_MAPPED_REGION);
bytes_unmapped_ += MAX_MAPPED_REGION;
}