aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2022-02-17 17:35:34 +0100
committerMarcoFalke <falke.marco@gmail.com>2022-02-17 17:25:57 +0100
commit9999f891d1c9093e552492cf8ccc3168370c7a39 (patch)
tree2bd47e40fb883aa79597f1a84dad8c0604aafb2a /src
parent03c8c6937ee03787c36ce374c50201f85a0a6c61 (diff)
downloadbitcoin-9999f891d1c9093e552492cf8ccc3168370c7a39.tar.xz
bench: Avoid deprecated use of volatile +=
Diffstat (limited to 'src')
-rw-r--r--src/bench/examples.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bench/examples.cpp b/src/bench/examples.cpp
index dcd615b9da..72a9922e94 100644
--- a/src/bench/examples.cpp
+++ b/src/bench/examples.cpp
@@ -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;
});
}