mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix Mac OS compile
This commit is contained in:
@@ -957,7 +957,8 @@ Status DBImpl::RetainProbableWalFiles(VectorLogPtr& all_logs,
|
||||
end = mid - 1;
|
||||
}
|
||||
}
|
||||
size_t start_index = std::max(0l, end); // end could be -ve.
|
||||
// end could be -ve.
|
||||
size_t start_index = std::max(static_cast<int64_t>(0), end);
|
||||
// The last wal file is always included
|
||||
all_logs.erase(all_logs.begin(), all_logs.begin() + start_index);
|
||||
return Status::OK();
|
||||
|
||||
Reference in New Issue
Block a user