diff options
author | Mikhail Gorbushin <m.gorbushin@corp.mail.ru> | 2019-03-11 17:07:55 +0300 |
---|---|---|
committer | Vlad Mihaylenko <vxmihaylenko@gmail.com> | 2019-03-12 12:21:28 +0300 |
commit | f347bac6248488886dde935119b595b4fdbf702a (patch) | |
tree | 1145befd424455b87c3af1838242ff859af97988 /routing | |
parent | 2cd8fa31d44c7eb095cb5f0879fcfaffffd813c0 (diff) |
[routing] fix warning
Diffstat (limited to 'routing')
-rw-r--r-- | routing/restrictions_serialization.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routing/restrictions_serialization.hpp b/routing/restrictions_serialization.hpp index 7fbcb88d95..59f5df89a1 100644 --- a/routing/restrictions_serialization.hpp +++ b/routing/restrictions_serialization.hpp @@ -186,7 +186,7 @@ private: } restriction.m_featureIds[0] = prevFirstLinkFeatureId + base::checked_cast<uint32_t>(biasedFirstFeatureId) - 1; - for (size_t i = 1; i < numLinks; ++i) + for (size_t j = 1; j < numLinks; ++j) { auto const biasedDelta = coding::DeltaCoder::Decode(bits); if (biasedDelta == 0) @@ -196,8 +196,8 @@ private: } uint32_t const delta = base::asserted_cast<uint32_t>(biasedDelta - 1); - restriction.m_featureIds[i] = - static_cast<uint32_t>(bits::ZigZagDecode(delta) + restriction.m_featureIds[i - 1]); + restriction.m_featureIds[j] = + static_cast<uint32_t>(bits::ZigZagDecode(delta) + restriction.m_featureIds[j - 1]); } prevFirstLinkFeatureId = restriction.m_featureIds[0]; |