Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77610 - trunk/libs/graph/example
From: jewillco_at_[hidden]
Date: 2012-03-28 16:27:31


Author: jewillco
Date: 2012-03-28 16:27:30 EDT (Wed, 28 Mar 2012)
New Revision: 77610
URL: http://svn.boost.org/trac/boost/changeset/77610

Log:
Fixed narrowing conversion
Text files modified:
   trunk/libs/graph/example/astar_maze.cpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/libs/graph/example/astar_maze.cpp
==============================================================================
--- trunk/libs/graph/example/astar_maze.cpp (original)
+++ trunk/libs/graph/example/astar_maze.cpp 2012-03-28 16:27:30 EDT (Wed, 28 Mar 2012)
@@ -221,7 +221,7 @@
       if (x == 0)
         output << BARRIER;
       // Put the character representing this point in the maze grid.
- vertex_descriptor u = {{x, y}};
+ vertex_descriptor u = {{x, vertices_size_type(y)}};
       if (m.solution_contains(u))
         output << ".";
       else if (m.has_barrier(u))


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