From dddceefe5efe5d9038f19f399d8a4ca7eefcf688 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Thu, 30 Apr 2015 11:11:04 -0700 Subject: [PATCH] Fix clang build Summary: fix build Test Plan: works Reviewers: kradhakrishnan Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D37911 --- db/version_set.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/version_set.cc b/db/version_set.cc index de15c4cef..9881c3edc 100644 --- a/db/version_set.cc +++ b/db/version_set.cc @@ -2827,9 +2827,9 @@ uint64_t VersionSet::ApproximateSize(Version* v, const Slice& start, assert(files_brief.num_files > 0); // identify the file position for starting key - const uint64_t idx_start = - FindFileInRange(v->cfd_->internal_comparator(), files_brief, start, - /*start=*/0, files_brief.num_files - 1); + const uint64_t idx_start = FindFileInRange( + v->cfd_->internal_comparator(), files_brief, start, + /*start=*/0, static_cast(files_brief.num_files - 1)); assert(idx_start < files_brief.num_files); // scan all files from the starting position until the ending position