Skip to content

Commit 8bb183b

Browse files
kerrick-lyftPatrick Niklaus
authored and
Patrick Niklaus
committed
Fix call to std::min
1 parent 15359be commit 8bb183b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/plugins/match.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ static double search_radius_for_gps_radius(double gps_radius) {
2323
// For a given GPS radius, determine the radius we need to search for candidate street segments
2424
// to have a 99.9% chance of finding the correct segment.
2525
// For more detail, see the analysis at https://github.com/Project-OSRM/osrm-backend/pull/3184
26-
return std::min(gps_radius * 3.5 + 45, 200);
26+
return std::min(gps_radius * 3.5 + 45, 200.0);
2727
}
2828

2929
namespace osrm

0 commit comments

Comments
 (0)