Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Pimenov <m@maps.me>2019-05-14 20:17:52 +0300
committerVladimir Byko-Ianko <bykoianko@gmail.com>2019-05-15 13:35:08 +0300
commitc11c41d67738500b0d1eeea7170a775441578cae (patch)
tree0f888fdd6ec1cef7baa4e32cde00d6dd608461e2 /routing
parent06978f4585c463e97db42f96e7140616061939c3 (diff)
Fixed some warnings.
Diffstat (limited to 'routing')
-rw-r--r--routing/restrictions_serialization.hpp3
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);