diff --git a/tools/db_bench_tool.cc b/tools/db_bench_tool.cc index f35378bf9..7f4d84025 100644 --- a/tools/db_bench_tool.cc +++ b/tools/db_bench_tool.cc @@ -4773,7 +4773,9 @@ void VerifyDBFromDB(std::string& truth_db_name) { } else if (value_size > value_max) { value_size = value_size % value_max; } - s = db_with_cfh->db->Put(write_options_, key, gen.Generate(value_size)); + s = db_with_cfh->db->Put( + write_options_, key, + gen.Generate(static_cast(value_size))); if (!s.ok()) { fprintf(stderr, "put error: %s\n", s.ToString().c_str()); exit(1);