Warning in GetHistPrices:SampleParams.cpp:69
Posted: Sat Nov 24, 2018 12:54 pm
Compiling it with g++ 8.2.0 generates this warning - how ever, it is a wrong code because NaN cannot be assigned to an integer variable:
SampleParams.cpp:69:22: warning: overflow in conversion from ‘double’ to ‘int’ changes value from ‘+QNaN’ to ‘0’ [-Woverflow]
May be it can be fixed in on of the next releases.
SampleParams.cpp:69:22: warning: overflow in conversion from ‘double’ to ‘int’ changes value from ‘+QNaN’ to ‘0’ [-Woverflow]
May be it can be fixed in on of the next releases.