From e204b257adc8a91e407d3dfa7c84e49d315c3b2e Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Thu, 19 Jun 2014 10:40:24 +0200 Subject: [PATCH] add proper size_t->unsigned cast --- RoutingAlgorithms/ManyToManyRouting.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RoutingAlgorithms/ManyToManyRouting.h b/RoutingAlgorithms/ManyToManyRouting.h index 628e7df06..b5cb7958c 100644 --- a/RoutingAlgorithms/ManyToManyRouting.h +++ b/RoutingAlgorithms/ManyToManyRouting.h @@ -67,7 +67,7 @@ template class ManyToManyRouting : public BasicRoutingInterf std::shared_ptr> operator()(const std::vector &phantom_nodes_vector) const { - const unsigned number_of_locations = phantom_nodes_vector.size(); + const unsigned number_of_locations = static_cast(phantom_nodes_vector.size()); std::shared_ptr> result_table = std::make_shared>( number_of_locations * number_of_locations, std::numeric_limits::max());