aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/ijar/mapped_file.h
diff options
context:
space:
mode:
authorGravatar cushon <cushon@google.com>2018-03-29 13:31:46 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-03-29 13:32:58 -0700
commita29da01b360b778d15ed735222d0f1d247954acf (patch)
tree2961500fb84e8aa2ac4342f3c97d530ef425a29c /third_party/ijar/mapped_file.h
parenta76f7db51a90cc2e35c1d66782056c310729eef0 (diff)
Fix a warning about comparing signed and unsigned values
PiperOrigin-RevId: 190977545
Diffstat (limited to 'third_party/ijar/mapped_file.h')
-rw-r--r--third_party/ijar/mapped_file.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/third_party/ijar/mapped_file.h b/third_party/ijar/mapped_file.h
index 7653638d5f..874db8b836 100644
--- a/third_party/ijar/mapped_file.h
+++ b/third_party/ijar/mapped_file.h
@@ -62,10 +62,10 @@ class MappedOutputFile {
const char* errmsg_;
bool opened_;
u1* buffer_;
- u8 estimated_size_;
+ size_t estimated_size_;
public:
- MappedOutputFile(const char* name, u8 estimated_size);
+ MappedOutputFile(const char* name, size_t estimated_size);
virtual ~MappedOutputFile();
// If opening the file succeeded or not.
@@ -76,7 +76,7 @@ class MappedOutputFile {
// The mapped contents of the file.
u1* Buffer() const { return buffer_; }
- int Close(int size);
+ int Close(size_t size);
};
} // namespace devtools_ijar