mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
bench: Avoid deprecated use of volatile +=
This commit is contained in:
parent
03c8c6937e
commit
9999f891d1
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue