diff --git a/src/benchmark.cpp b/src/benchmark.cpp index b3f12da..6fb6c66 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -46,5 +46,5 @@ void benchmark(size_t num_keys, struct benchmark_result* res) { } res->sec = duration(steady_clock::now() - start).count(); - res->kps = num_keys / res->sec; + res->kps = static_cast(num_keys) / res->sec; }