1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-17 03:50:03 +02:00

src/benchmark.cpp: fixing compiler conversion error by explicitly casting num_keys to float.

This commit is contained in:
Henrik Hautakoski 2020-01-29 11:07:08 +01:00
parent e310bb7ac0
commit 288c7e96a2

View file

@ -46,5 +46,5 @@ void benchmark(size_t num_keys, struct benchmark_result* res) {
}
res->sec = duration<float>(steady_clock::now() - start).count();
res->kps = num_keys / res->sec;
res->kps = static_cast<float>(num_keys) / res->sec;
}