Compare commits

...

2 Commits

Author SHA1 Message Date
Daniel J. Hofmann 391163cba0 Fixes bearing range of zero exhaustive graph traversal 2016-09-08 17:38:40 +02:00
Moritz Kobitzsch 4cddec298f prepare 5.4.0-rc.1 2016-09-08 16:56:11 +02:00
5 changed files with 7 additions and 2 deletions
+1
View File
@@ -13,6 +13,7 @@ notifications:
branches:
only:
- master
- 5.4
cache:
ccache: true
+1
View File
@@ -20,6 +20,7 @@
- Fixed an issue that could emit `invalid` as instruction when ending on a sliproad after a traffic-light
- Fixed an issue that would detect turning circles as sliproads
- Fixed a bug where post-processing instructions (e.g. left + left -> uturn) could result in false pronunciations
- Fixes a bug where a bearing range of zero would cause exhaustive graph traversals
# 5.3.0
Changes from 5.3.0-rc.3
+1 -1
View File
@@ -9,7 +9,7 @@ endif()
project(OSRM C CXX)
set(OSRM_VERSION_MAJOR 5)
set(OSRM_VERSION_MINOR 3)
set(OSRM_VERSION_MINOR 4)
set(OSRM_VERSION_PATCH 0)
# these two functions build up custom variables:
+1 -1
View File
@@ -67,7 +67,7 @@ inline bool CheckInBounds(const int A, const int B, const int range)
if (range >= 180)
return true;
if (range <= 0)
if (range < 0)
return false;
// Map both bearings into positive modulo 360 space
+3
View File
@@ -42,6 +42,9 @@ BOOST_AUTO_TEST_CASE(bearing_range_test)
BOOST_CHECK_EQUAL(true, bearing::CheckInBounds(-721, 5, 10));
BOOST_CHECK_EQUAL(true, bearing::CheckInBounds(719, 5, 10));
BOOST_CHECK_EQUAL(false, bearing::CheckInBounds(1, 1, -1));
BOOST_CHECK_EQUAL(true, bearing::CheckInBounds(1, 1, 0));
}
BOOST_AUTO_TEST_SUITE_END()