Fixed compiler warnings

g++-10.1.0/c++20:

'error: compound assignment with ‘volatile’-qualified left operand is deprecated [-Werror=volatile]'
This commit is contained in:
Bjorn Wahlstrand 2020-08-01 13:02:11 -07:00
parent 2929ad5a66
commit 6fdeff4d67

View File

@ -6,7 +6,7 @@ namespace detail
volatile float f = 1e10;
for(int i = 0; i < 10; ++i)
f *= f; // this will overflow before the for loop terminates
f = f * f; // this will overflow before the for loop terminates
return f;
}