mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-28 01:41:57 +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;
|
double d = 0.01;
|
||||||
bench.run([&] {
|
bench.run([&] {
|
||||||
sum += sin(d);
|
sum = sum + sin(d);
|
||||||
d += 0.000001;
|
d += 0.000001;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user