Fix Mac build
This commit is contained in:
parent
ab01da5437
commit
9d6c961383
@ -258,7 +258,8 @@ class RandomRWStringSink : public RandomRWFile {
|
||||
Status Read(uint64_t offset, size_t n, Slice* result, char* scratch) const {
|
||||
*result = Slice(nullptr, 0);
|
||||
if (offset < ss_->contents_.size()) {
|
||||
size_t str_res_sz = std::min(ss_->contents_.size() - offset, n);
|
||||
size_t str_res_sz =
|
||||
std::min(static_cast<size_t>(ss_->contents_.size() - offset), n);
|
||||
*result = Slice(ss_->contents_.data() + offset, str_res_sz);
|
||||
}
|
||||
return Status::OK();
|
||||
|
Loading…
Reference in New Issue
Block a user