[map-tests] In ConvergenceTest abs() is replaced by fabs().

This commit is contained in:
Yuri Gorshenin 2015-03-19 14:07:23 +03:00 committed by Alex Zolotarev
parent 834b5346b3
commit 0b23f7e862

View file

@ -77,7 +77,7 @@ bool ConvergenceTest(double lat, double lon, double latEps, double lonEps)
MapsWithMe_LatLonToString(tmpLat, tmpLon, urlPrefix + 0, 9);
parser.DecodeLatLon(urlPrefix, tmpLat, tmpLon);
}
if (abs(lat - tmpLat) <= latEps && abs(lon - tmpLon) <= lonEps)
if (fabs(lat - tmpLat) <= latEps && fabs(lon - tmpLon) <= lonEps)
return true;
return false;
}