aboutsummaryrefslogtreecommitdiffstats
path: root/checks/pk_bench.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-11-17 02:25:53 +0000
committerlloyd <[email protected]>2007-11-17 02:25:53 +0000
commitfedea15eb92bed68148a57fbd3b0b5ab3d2cb4b8 (patch)
tree64cc0642d49a7932dc5c4540773c7bca7dedf716 /checks/pk_bench.cpp
parent48683e5f3cc108bc7ee5cc9492aefd18d2fc7699 (diff)
Replace C-style casts with static_cast (found by GCC's -Wold-style-cast)
Diffstat (limited to 'checks/pk_bench.cpp')
-rw-r--r--checks/pk_bench.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/checks/pk_bench.cpp b/checks/pk_bench.cpp
index f829c05e8..7b0150c24 100644
--- a/checks/pk_bench.cpp
+++ b/checks/pk_bench.cpp
@@ -178,11 +178,10 @@ void bench_pk(const std::string& algo, bool html, double seconds)
void print_result(bool html, u32bit runs, u64bit clocks_used,
const std::string& algo_name, const std::string& op)
{
- double seconds = (double)clocks_used / get_ticks();
+ double seconds = static_cast<double>(clocks_used) / get_ticks();
double mseconds_per_run = 1000 * (seconds / runs);
double runs_per_sec = runs / seconds;
-
if(html)
{
std::cout << " <TR><TH>" << algo_name << " (" << op << ") <TH>";