diff --git a/tools/db_bench_tool.cc b/tools/db_bench_tool.cc index 34f800ff2..f3868be01 100644 --- a/tools/db_bench_tool.cc +++ b/tools/db_bench_tool.cc @@ -4580,7 +4580,7 @@ void VerifyDBFromDB(std::string& truth_db_name) { if (FLAGS_max_scan_distance != 0) { if (FLAGS_reverse_iterator) { GenerateKeyFromInt( - (uint64_t)std::max(0l, seek_pos - FLAGS_max_scan_distance), + (uint64_t)std::max((int64_t)0, seek_pos - FLAGS_max_scan_distance), FLAGS_num, &lower_bound); options.iterate_lower_bound = &lower_bound; } else {