0
0
mirror of https://github.com/openwrt/packages.git synced 2025-02-14 13:48:04 +00:00
packages/utils/sumo/patches/020-gcc14.patch
Rosen Penev ba0ff68c27 sumo: update to 1.16.0
Add patch for GCC14.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-06-29 11:56:14 -07:00

12 lines
399 B
Diff

--- a/src/utils/router/IntermodalEdge.h
+++ b/src/utils/router/IntermodalEdge.h
@@ -232,7 +232,7 @@ public:
// only used by AStar
inline double getMinimumTravelTime(const IntermodalTrip<E, N, V>* const trip) const {
- return myLength / trip->getMaxSpeed();
+ return trip ? myLength / trip->getMaxSpeed() : myLength;
}
/// @brief only used by mono-modal routing