Fix clang build

Summary:
https://ci-builds.fb.com/view/rocksdb/job/rocksdb_clang_build/893/console
Fixing clang build

Test Plan:
make clean
USE_CLANG=1 make all -j64

Reviewers: sdong, noetzli, yhchiang, igor

Reviewed By: igor

Subscribers: dhruba

Differential Revision: https://reviews.facebook.net/D43959
This commit is contained in:
Islam AbdelRahman 2015-08-10 11:30:36 -07:00
parent 2cf0f4f471
commit a9dcc0a638

View File

@ -230,7 +230,7 @@ class CompactionJobTest : public testing::Test {
for (size_t level = 0; level < input_files.size(); level++) { for (size_t level = 0; level < input_files.size(); level++) {
auto level_files = input_files[level]; auto level_files = input_files[level];
CompactionInputFiles compaction_level; CompactionInputFiles compaction_level;
compaction_level.level = level; compaction_level.level = static_cast<int>(level);
compaction_level.files.insert(compaction_level.files.end(), compaction_level.files.insert(compaction_level.files.end(),
level_files.begin(), level_files.end()); level_files.begin(), level_files.end());
compaction_input_files.push_back(compaction_level); compaction_input_files.push_back(compaction_level);