aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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;
}