aboutsummaryrefslogtreecommitdiffstats
path: root/src/benchmark/benchmark.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-04-23 12:51:44 +0000
committerlloyd <[email protected]>2010-04-23 12:51:44 +0000
commit5285c91f975c319078f6de7ad4568ce7f925bd6b (patch)
treeb05374259d8fb3226ca8b5fabc6ff02273085af4 /src/benchmark/benchmark.cpp
parent3bc6f213f911fb52fa9c412bb6af1a9ece60a086 (diff)
Remove some C-style casts
Diffstat (limited to 'src/benchmark/benchmark.cpp')
-rw-r--r--src/benchmark/benchmark.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/benchmark/benchmark.cpp b/src/benchmark/benchmark.cpp
index 01f6b99da..a24a3fdaf 100644
--- a/src/benchmark/benchmark.cpp
+++ b/src/benchmark/benchmark.cpp
@@ -131,7 +131,7 @@ algorithm_benchmark(const std::string& name,
return all_results;
const u64bit ns_per_provider =
- ((u64bit)milliseconds * 1000 * 1000) / providers.size();
+ (static_cast<u64bit>(milliseconds) * 1000 * 1000) / providers.size();
std::vector<byte> buf(16 * 1024);
rng.randomize(&buf[0], buf.size());