Linux compile warning fixes

p4#: 21189
This commit is contained in:
CeetronResInsight
2013-04-09 07:59:41 +02:00
parent 812aee9be4
commit 1cfd103f30
3 changed files with 3 additions and 3 deletions

View File

@@ -102,7 +102,7 @@ std::vector<double> RigStatisticsMath::calculateNearestRankPercentiles(const std
{
double pVal = HUGE_VAL;
size_t pValIndex = static_cast<size_t>(sortedValues.size() * abs(pValPositions[i]) / 100);
size_t pValIndex = static_cast<size_t>(sortedValues.size() * fabs(pValPositions[i]) / 100);
if (pValIndex >= sortedValues.size() ) pValIndex = sortedValues.size() - 1;