Fix clang build

Summary: fix build

Test Plan: works

Reviewers: kradhakrishnan

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D37911
main
Igor Canadi 10 years ago
parent d4540654e9
commit dddceefe5e
  1. 6
      db/version_set.cc

@ -2827,9 +2827,9 @@ uint64_t VersionSet::ApproximateSize(Version* v, const Slice& start,
assert(files_brief.num_files > 0); assert(files_brief.num_files > 0);
// identify the file position for starting key // identify the file position for starting key
const uint64_t idx_start = const uint64_t idx_start = FindFileInRange(
FindFileInRange(v->cfd_->internal_comparator(), files_brief, start, v->cfd_->internal_comparator(), files_brief, start,
/*start=*/0, files_brief.num_files - 1); /*start=*/0, static_cast<uint32_t>(files_brief.num_files - 1));
assert(idx_start < files_brief.num_files); assert(idx_start < files_brief.num_files);
// scan all files from the starting position until the ending position // scan all files from the starting position until the ending position

Loading…
Cancel
Save