Skip to content

Commit a108ee6

Browse files
committed
fix(route_handler: fix std::accumlation related bug)
Signed-off-by: Ryuta Kambe <ryuta.kambe@tier4.jp>
1 parent c24ad46 commit a108ee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

planning/route_handler/src/route_handler.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1593,7 +1593,7 @@ double RouteHandler::getTotalLateralDistanceToPreferredLane(
15931593
const lanelet::ConstLanelet & lanelet, const Direction direction) const
15941594
{
15951595
const auto intervals = getLateralIntervalsToPreferredLane(lanelet, direction);
1596-
return std::accumulate(intervals.begin(), intervals.end(), 0);
1596+
return std::accumulate(intervals.begin(), intervals.end(), 0.0);
15971597
}
15981598

15991599
std::vector<double> RouteHandler::getLateralIntervalsToPreferredLane(

0 commit comments

Comments
 (0)