kopia lustrzana https://github.com/ukhas/habitat-cpp-connector
changed int to float for pow() function. This was causing compiler to fail on Mac OS X.
rodzic
383f1e882b
commit
6cfb811b07
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue