diff --git a/util/options.cc b/util/options.cc index 7f1520a74..17dad0f25 100644 --- a/util/options.cc +++ b/util/options.cc @@ -154,7 +154,8 @@ ColumnFamilyOptions::ColumnFamilyOptions(const Options& options) max_successive_merges(options.max_successive_merges), min_partial_merge_operands(options.min_partial_merge_operands) { assert(memtable_factory.get() != nullptr); - if (max_bytes_for_level_multiplier_additional.size() < num_levels) { + if (max_bytes_for_level_multiplier_additional.size() < + static_cast(num_levels)) { max_bytes_for_level_multiplier_additional.resize(num_levels, 1); } }