diff --git a/generator/metalines_builder.cpp b/generator/metalines_builder.cpp index 93a774badc..421e9ac680 100644 --- a/generator/metalines_builder.cpp +++ b/generator/metalines_builder.cpp @@ -189,7 +189,7 @@ void MetalinesBuilder::CollectFeature(FeatureBuilder const & feature, OsmElement if (name.empty() && params.ref.empty()) return; - auto const key = std::hash{}(name + '\0' + params.ref); + auto const key = static_cast(std::hash{}(name + '\0' + params.ref)); WriteVarUint(*m_writer, key); LineString(element).Serialize(*m_writer); } @@ -203,7 +203,7 @@ void MetalinesBuilder::Save() ReaderSource src(reader); while (src.Size() > 0) { - auto const key = ReadVarUint(src); + auto const key = ReadVarUint(src); keyToLineString.emplace(key, std::make_shared(LineString::Deserialize(src))); }