Update extractor_callbacks.cpp

way_id overflow with 64 bit number
This commit is contained in:
Mostafa 2019-02-28 14:56:45 +03:30 committed by GitHub
parent e86d93760f
commit 2e5d5997f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -478,7 +478,7 @@ void ExtractorCallbacks::ProcessWay(const osmium::Way &input_way, const Extracti
}); });
external_memory.way_start_end_id_list.push_back( external_memory.way_start_end_id_list.push_back(
{OSMWayID{static_cast<std::uint32_t>(input_way.id())}, {OSMWayID{static_cast<std::uint64_t>(input_way.id())},
OSMNodeID{static_cast<std::uint64_t>(nodes[0].ref())}, OSMNodeID{static_cast<std::uint64_t>(nodes[0].ref())},
OSMNodeID{static_cast<std::uint64_t>(nodes[1].ref())}, OSMNodeID{static_cast<std::uint64_t>(nodes[1].ref())},
OSMNodeID{static_cast<std::uint64_t>(nodes[nodes.size() - 2].ref())}, OSMNodeID{static_cast<std::uint64_t>(nodes[nodes.size() - 2].ref())},