use an explicit downcast to initialize variable

This commit is contained in:
Dennis Luxen 2014-06-23 13:22:46 +02:00
parent 1231847a3c
commit 40a71e09a6

View File

@ -146,7 +146,7 @@ template <class DataFacadeT> class BasicRoutingInterface
const bool target_traversed_in_reverse =
(packed_path.back() != phantom_node_pair.target_phantom.forward_node_id);
const unsigned packed_path_size = packed_path.size();
const unsigned packed_path_size = static_cast<unsigned>(packed_path.size());
std::stack<std::pair<NodeID, NodeID>> recursion_stack;
// We have to push the path in reverse order onto the stack because it's LIFO.