Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Gorshenin <y@maps.me>2015-03-19 14:07:23 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:40:17 +0300
commit0b23f7e862be4f5524595015d59449048b35c956 (patch)
tree8a2bfbbf1e0cc4a40e146c1a3c27b82160bf965c /map/map_tests
parent834b5346b30b6eb0cb5213abf58f77a947e469d5 (diff)
[map-tests] In ConvergenceTest abs() is replaced by fabs().
Diffstat (limited to 'map/map_tests')
-rw-r--r--map/map_tests/ge0_parser_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/map/map_tests/ge0_parser_tests.cpp b/map/map_tests/ge0_parser_tests.cpp
index 3cb3e2a2c2..5b98a15ba7 100644
--- a/map/map_tests/ge0_parser_tests.cpp
+++ b/map/map_tests/ge0_parser_tests.cpp
@@ -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;
}