From b9a4a10659969c71e6f6eab4e4bae8c36ede919f Mon Sep 17 00:00:00 2001 From: Adam Retter Date: Sat, 7 Mar 2020 17:58:42 +0100 Subject: [PATCH] Fix build on MSVC --- db/range_del_aggregator_bench.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }