diff options
author | MarcoFalke <falke.marco@gmail.com> | 2022-02-17 17:35:34 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2022-02-17 17:25:57 +0100 |
commit | 9999f891d1c9093e552492cf8ccc3168370c7a39 (patch) | |
tree | 2bd47e40fb883aa79597f1a84dad8c0604aafb2a /src/bench/examples.cpp | |
parent | 03c8c6937ee03787c36ce374c50201f85a0a6c61 (diff) | |
download | bitcoin-9999f891d1c9093e552492cf8ccc3168370c7a39.tar.xz |
bench: Avoid deprecated use of volatile +=
Diffstat (limited to 'src/bench/examples.cpp')
-rw-r--r-- | src/bench/examples.cpp | 2 |
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; }); } |