Skip to content

Commit

Permalink
db_bench: fix compiler warnings (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuval-Ariel committed May 4, 2023
1 parent 6d3c92a commit 2ef83ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/db_bench_tool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7199,7 +7199,7 @@ class Benchmark {
// deterministically turns range_num to unsigned int
uint64_t range_num_to_rand(uint64_t range_num) {
std::string str = std::to_string(range_num);
unsigned int xxh64 = XXH64(str.data(), str.length(), 0);
auto xxh64 = XXH64(str.data(), str.length(), 0);
// % num_ since the rand num will be used to make keys which are expected in
// that range
return xxh64 % num_;
Expand Down Expand Up @@ -9423,7 +9423,7 @@ int db_bench_tool(int argc, char** argv) {
token = strtok(nullptr, delim);
}
// First argument is always the same for all groups => The "program name"
size_t argc1 = 1 + argv_vec.size();
auto argc1 = static_cast<int>(1 + argv_vec.size());
char** argv1 = new char*[argc1];
argv1[0] = argv[0];

Expand Down

0 comments on commit 2ef83ea

Please sign in to comment.