mirror of
https://github.com/facebook/rocksdb.git
synced 2024-12-04 11:03:22 +00:00
Fix build on MSVC
This commit is contained in:
parent
1c63b82b9a
commit
b9a4a10659
|
@ -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<uint64_t>(std::max(1.0, normal_dist(random_gen)));
|
||||
persistent_range_tombstones[j] = rocksdb::PersistentRangeTombstone(
|
||||
rocksdb::Key(start), rocksdb::Key(end), j);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue