From 40b43aa600e502032c9d218c8b9838d23a2db679 Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Tue, 27 Mar 2018 12:00:42 +0300 Subject: [PATCH] Changing ctor RouteWeight params to int8_t. --- routing/route_weight.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/routing/route_weight.hpp b/routing/route_weight.hpp index aedb731dba..66c1587b29 100644 --- a/routing/route_weight.hpp +++ b/routing/route_weight.hpp @@ -17,11 +17,11 @@ public: explicit constexpr RouteWeight(double weight) : m_weight(weight) {} - constexpr RouteWeight(double weight, int32_t numPassThroughChanges, int32_t numAccessChanges, + constexpr RouteWeight(double weight, int8_t numPassThroughChanges, int8_t numAccessChanges, double transitTime) : m_weight(weight) - , m_numPassThroughChanges(static_cast(numPassThroughChanges)) - , m_numAccessChanges(static_cast(numAccessChanges)) + , m_numPassThroughChanges(numPassThroughChanges) + , m_numAccessChanges(numAccessChanges) , m_transitTime(transitTime) { } @@ -91,7 +91,7 @@ private: // Number of access=yes/access={private,destination} zone changes. int8_t m_numAccessChanges = 0; // Transit time. It's already included in |m_weight| (m_transitTime <= m_weight). - double m_transitTime = 0.0F; + double m_transitTime = 0.0; }; std::ostream & operator<<(std::ostream & os, RouteWeight const & routeWeight);