changed int to float for pow() function. This was causing compiler to fail on Mac OS X.

pull/2/head
James Coxon 2013-08-17 08:03:03 +01:00
rodzic 383f1e882b
commit 6cfb811b07
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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;
}
}