Commit 35bf2700 authored by Bryant's avatar Bryant

Windows compilation fails due to differing datatypes for input to pow() function.

parent b19d26a7
......@@ -112,7 +112,7 @@
*/
double PrimaryFlightDisplay_round(double value, int digits=0)
{
return floor(value * pow(10, digits) + 0.5) / pow(10, digits);
return floor(value * pow(10.0, digits) + 0.5) / pow(10.0, digits);
}
const int PrimaryFlightDisplay::tickValues[] = {10, 20, 30, 45, 60};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment