aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/ijar/mapped_file_windows.cc
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_windows.cc
parenta76f7db51a90cc2e35c1d66782056c310729eef0 (diff)
Fix a warning about comparing signed and unsigned values
PiperOrigin-RevId: 190977545
Diffstat (limited to 'third_party/ijar/mapped_file_windows.cc')
-rw-r--r--third_party/ijar/mapped_file_windows.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/ijar/mapped_file_windows.cc b/third_party/ijar/mapped_file_windows.cc
index 6fb8b369d6..6292605e86 100644
--- a/third_party/ijar/mapped_file_windows.cc
+++ b/third_party/ijar/mapped_file_windows.cc
@@ -125,7 +125,7 @@ struct MappedOutputFileImpl {
}
};
-MappedOutputFile::MappedOutputFile(const char* name, u8 estimated_size) {
+MappedOutputFile::MappedOutputFile(const char* name, size_t estimated_size) {
impl_ = NULL;
opened_ = false;
errmsg_ = errmsg;
@@ -169,7 +169,7 @@ MappedOutputFile::~MappedOutputFile() {
delete impl_;
}
-int MappedOutputFile::Close(int size) {
+int MappedOutputFile::Close(size_t size) {
if (!UnmapViewOfFile(buffer_)) {
blaze_util::die(255, "MappedOutputFile::Close: UnmapViewOfFile failed: %s",
blaze_util::GetLastErrorString().c_str());