After converting a file with doubles to floats the compiler (MSCV2005) warns about conversions from double
to float
for in code constants like
...
float r;
r = (q1 + q2) * 0.5;
...
Even q1, q2
are both floats 0.5
seems to be treated as double
.
How to adapt this behavious, so that all in-code constants are treated as float
s?