Skip to content

Commit

Permalink
bench: Avoid deprecated use of volatile +=
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoFalke committed Feb 17, 2022
1 parent 03c8c69 commit 9999f89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bench/examples.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ static void Trig(benchmark::Bench& bench)
{
double d = 0.01;
bench.run([&] {
sum += sin(d);
sum = sum + sin(d);
d += 0.000001;
});
}
Expand Down

0 comments on commit 9999f89

Please sign in to comment.