bench: Avoid deprecated use of volatile +=

This commit is contained in:
MarcoFalke committed 2022-02-17 17:25:57 +01:00
1 parent 03c8c6937e
commit 9999f891d1
1 file changed
+1 -1
+1 -1
View File
@@ -13,7 +13,7 @@ static void Trig(benchmark::Bench& bench)
{ {
double d = 0.01; double d = 0.01;
bench.run([&] { bench.run([&] {
sum += sin(d); sum = sum + sin(d);
d += 0.000001; d += 0.000001;
}); });
} }