mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-27 17:31:40 +02:00
bench: Avoid deprecated use of volatile +=
This commit is contained in:
parent
03c8c6937e
commit
9999f891d1
@ -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;
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user