We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1749a44 commit 364e3ecCopy full SHA for 364e3ec
examples/google_benchmark_cmake/fibonacci_bench.hpp
@@ -8,7 +8,7 @@ static uint64_t fibonacci_recursive(int n) {
8
}
9
10
static void BM_FibonacciRecursive(benchmark::State& state) {
11
- int n = state.range(0);
+ int n = static_cast<int>(state.range(0));
12
for (auto _ : state) {
13
uint64_t result = fibonacci_recursive(n);
14
benchmark::DoNotOptimize(result);
@@ -29,7 +29,7 @@ static uint64_t fibonacci_iterative(int n) {
29
30
31
static void BM_FibonacciIterative(benchmark::State& state) {
32
33
34
uint64_t result = fibonacci_iterative(n);
35
0 commit comments