Fix a warning about comparing signed and unsigned values
PiperOrigin-RevId: 190580907
diff --git a/third_party/ijar/mapped_file.h b/third_party/ijar/mapped_file.h
index 7653638..d58fc18 100644
--- a/third_party/ijar/mapped_file.h
+++ b/third_party/ijar/mapped_file.h
@@ -76,7 +76,7 @@
// 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 ccb8787..5271f00 100644
--- a/third_party/ijar/mapped_file_unix.cc
+++ b/third_party/ijar/mapped_file_unix.cc
@@ -131,9 +131,9 @@
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;