diff options
author | Maxim Pimenov <m@maps.me> | 2019-05-14 20:17:52 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <bykoianko@gmail.com> | 2019-05-15 13:35:08 +0300 |
commit | c11c41d67738500b0d1eeea7170a775441578cae (patch) | |
tree | 0f888fdd6ec1cef7baa4e32cde00d6dd608461e2 /routing | |
parent | 06978f4585c463e97db42f96e7140616061939c3 (diff) |
Fixed some warnings.
Diffstat (limited to 'routing')
-rw-r--r-- | routing/restrictions_serialization.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routing/restrictions_serialization.hpp b/routing/restrictions_serialization.hpp index b983d89a98..ab3f3e12af 100644 --- a/routing/restrictions_serialization.hpp +++ b/routing/restrictions_serialization.hpp @@ -171,7 +171,8 @@ private: LOG(LERROR, ("Decoded link restriction number is zero.")); return false; } - size_t const numLinks = biasedLinkNumber + 1 /* number of link is two or more */; + auto const numLinks = + static_cast<size_t>(biasedLinkNumber + 1); /* number of link is two or more */ std::vector<uint32_t> restriction(numLinks); auto const biasedFirstFeatureId = coding::DeltaCoder::Decode(bits); |