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:
parent
e310bb7ac0
commit
288c7e96a2
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue