We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03c8c69 commit 9999f89Copy full SHA for 9999f89
src/bench/examples.cpp
@@ -13,7 +13,7 @@ static void Trig(benchmark::Bench& bench)
13
{
14
double d = 0.01;
15
bench.run([&] {
16
- sum += sin(d);
+ sum = sum + sin(d);
17
d += 0.000001;
18
});
19
}
0 commit comments