aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/ijar
diff options
context:
space:
mode:
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;