|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r73630 - trunk/boost/graph
From: jewillco_at_[hidden]
Date: 2011-08-09 15:23:17
Author: jewillco
Date: 2011-08-09 15:23:16 EDT (Tue, 09 Aug 2011)
New Revision: 73630
URL: http://svn.boost.org/trac/boost/changeset/73630
Log:
Fixed grid graph for case where VertexIndex is smaller than int
Text files modified:
trunk/boost/graph/grid_graph.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/boost/graph/grid_graph.hpp
==============================================================================
--- trunk/boost/graph/grid_graph.hpp (original)
+++ trunk/boost/graph/grid_graph.hpp 2011-08-09 15:23:16 EDT (Tue, 09 Aug 2011)
@@ -377,7 +377,7 @@
// Stop at the end of this dimension if necessary.
new_position =
(std::min)(new_position,
- length(dimension_index) - 1);
+ vertices_size_type(length(dimension_index) - 1));
}
vertex[dimension_index] = new_position;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk