aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/ijar
diff options
context:
space:
mode:
authorGravatar lpino <lpino@google.com>2018-03-27 03:21:47 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-03-27 03:23:10 -0700
commit1dc4a1636069ff3e1be38320be4d5716ec4c7ea4 (patch)
tree0858ba07d524389b9cf0cd30c3d20d82e91b42eb /third_party/ijar
parent0b8d0341c6c7f4a115b2f12a16cdd8687f24cbca (diff)
Automated rollback of commit 8c864137d46cf6c3714fb47799a34e4859aa2f13.
*** Reason for rollback *** Breaks Bazel on Windows: https://buildkite.com/bazel/bazel-bazel/builds/1041 *** Original change description *** Fix a warning about comparing signed and unsigned values PiperOrigin-RevId: 190593548
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 d58fc1871b..7653638d5f 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(u8 size);
+ int Close(int size);
};
} // namespace devtools_ijar
diff --git a/third_party/ijar/mapped_file_unix.cc b/third_party/ijar/mapped_file_unix.cc
index 5271f0065f..ccb8787cd5 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(u8 size) {
+int MappedOutputFile::Close(int size) {
if (size > estimated_size_) {
- snprintf(errmsg, MAX_ERROR, "size %lld > estimated size %lld", size,
+ snprintf(errmsg, MAX_ERROR, "size %d > estimated size %lld", size,
estimated_size_);
errmsg_ = errmsg;
return -1;