diff --git a/db/range_del_aggregator_bench.cc b/db/range_del_aggregator_bench.cc index 7ecdbc5af..c5e83b883 100644 --- a/db/range_del_aggregator_bench.cc +++ b/db/range_del_aggregator_bench.cc @@ -197,7 +197,7 @@ int main(int argc, char** argv) { // real workloads. for (int j = 0; j < FLAGS_num_range_tombstones; j++) { uint64_t start = rnd.Uniform(FLAGS_tombstone_start_upper_bound); - uint64_t end = start + std::max(1.0, normal_dist(random_gen)); + uint64_t end = start + static_cast(std::max(1.0, normal_dist(random_gen))); persistent_range_tombstones[j] = rocksdb::PersistentRangeTombstone( rocksdb::Key(start), rocksdb::Key(end), j); }