aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/ijar
diff options
context:
space:
mode:
authorGravatar cushon <cushon@google.com>2018-03-27 00:32:09 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-03-27 00:33:38 -0700
commit8c864137d46cf6c3714fb47799a34e4859aa2f13 (patch)
tree76eeed6738f509c06366be5ebc993ac4ad875c83 /third_party/ijar
parentb8765a6656415eb6380fffd20202515918880d96 (diff)
Fix a warning about comparing signed and unsigned values
PiperOrigin-RevId: 190580907
Diffstat (limited to 'third_party/ijar')
-rw-r--r--third_party/ijar/mapped_file.h2
-rw-r--r--third_party/ijar/mapped_file_unix.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/third_party/ijar/mapped_file.h b/third_party/ijar/mapped_file.h
index 7653638d5f..d58fc1871b 100644
--- a/third_party/ijar/mapped_file.h
+++ b/third_party/ijar/mapped_file.h
@@ -76,7 +76,7 @@ class MappedOutputFile {
// The mapped contents of the file.
u1* Buffer() const { return buffer_; }
- int Close(int size);
+ int Close(u8 size);
};
} // namespace devtools_ijar
diff --git a/third_party/ijar/mapped_file_unix.cc b/third_party/ijar/mapped_file_unix.cc
index ccb8787cd5..5271f0065f 100644
--- a/third_party/ijar/mapped_file_unix.cc
+++ b/third_party/ijar/mapped_file_unix.cc
@@ -131,9 +131,9 @@ MappedOutputFile::~MappedOutputFile() {
delete impl_;
}
-int MappedOutputFile::Close(int size) {
+int MappedOutputFile::Close(u8 size) {
if (size > estimated_size_) {
- snprintf(errmsg, MAX_ERROR, "size %d > estimated size %lld", size,
+ snprintf(errmsg, MAX_ERROR, "size %lld > estimated size %lld", size,
estimated_size_);
errmsg_ = errmsg;
return -1;