From 35bf270076d06f8ffb67165d174e4a6d8be2e70f Mon Sep 17 00:00:00 2001 From: Bryant Date: Wed, 3 Jul 2013 14:06:24 -0700 Subject: [PATCH] Windows compilation fails due to differing datatypes for input to pow() function. --- src/ui/PrimaryFlightDisplay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/PrimaryFlightDisplay.cpp b/src/ui/PrimaryFlightDisplay.cpp index b5a732bf3..695c9e448 100644 --- a/src/ui/PrimaryFlightDisplay.cpp +++ b/src/ui/PrimaryFlightDisplay.cpp @@ -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}; -- 2.22.0