From 46d4670b74ef3c7a5997f07cf477754b4f057fd6 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Tue, 17 Jun 2014 16:00:42 +0200 Subject: [PATCH] cast float to unsigned in a proper way --- DataStructures/DynamicGraph.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataStructures/DynamicGraph.h b/DataStructures/DynamicGraph.h index 142c0b671..3dc48b6a6 100644 --- a/DataStructures/DynamicGraph.h +++ b/DataStructures/DynamicGraph.h @@ -92,7 +92,7 @@ template class DynamicGraph position += m_nodes[node].edges; } m_nodes.back().firstEdge = position; - m_edges.reserve(position * 1.1); + m_edges.reserve(static_cast(position * 1.1)); m_edges.resize(position); edge = 0; for (NodeIterator node = 0; node < m_numNodes; ++node)