From 6cfb811b075ae81f95cf0ac4372c3ca15d281b16 Mon Sep 17 00:00:00 2001 From: James Coxon Date: Sat, 17 Aug 2013 08:03:03 +0100 Subject: [PATCH] changed int to float for pow() function. This was causing compiler to fail on Mac OS X. --- src/UKHASExtractor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UKHASExtractor.cxx b/src/UKHASExtractor.cxx index a196207..8864524 100644 --- a/src/UKHASExtractor.cxx +++ b/src/UKHASExtractor.cxx @@ -386,7 +386,7 @@ static void numeric_scale(Json::Value &data, const Json::Value &config) if (value != 0) { int position = round_i - int(ceil(log10(fabs(value)))); - double m = pow(10, position); + double m = pow(10.0, position); value = round(value * m) / m; } }