Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49557 - trunk/boost/graph
From: asutton_at_[hidden]
Date: 2008-11-03 10:21:06


Author: asutton
Date: 2008-11-03 10:21:06 EST (Mon, 03 Nov 2008)
New Revision: 49557
URL: http://svn.boost.org/trac/boost/changeset/49557

Log:
Fixed a compiler warning that complained about parentheses in a do loop.

Text files modified:
   trunk/boost/graph/fruchterman_reingold.hpp | 20 ++++++++++----------
   1 files changed, 10 insertions(+), 10 deletions(-)

Modified: trunk/boost/graph/fruchterman_reingold.hpp
==============================================================================
--- trunk/boost/graph/fruchterman_reingold.hpp (original)
+++ trunk/boost/graph/fruchterman_reingold.hpp 2008-11-03 10:21:06 EST (Mon, 03 Nov 2008)
@@ -137,11 +137,11 @@
           std::size_t adj_end_column = column == columns - 1? column : column + 1;
           for (std::size_t other_row = adj_start_row; other_row <= adj_end_row;
                ++other_row)
- for (std::size_t other_column = adj_start_column;
+ for (std::size_t other_column = adj_start_column;
                  other_column <= adj_end_column; ++other_column)
               if (other_row != row || other_column != column) {
                 // Repulse vertices in this bucket
- bucket_t& other_bucket
+ bucket_t& other_bucket
                   = buckets[other_row * columns + other_column];
                 for (v = other_bucket.begin(); v != other_bucket.end(); ++v)
                   apply_force(*u, *v);
@@ -301,20 +301,20 @@
       BOOST_USING_STD_MAX();
       Dim disp_size = sqrt(displacement[*v].x * displacement[*v].x
                            + displacement[*v].y * displacement[*v].y);
- position[*v].x += displacement[*v].x / disp_size
+ position[*v].x += displacement[*v].x / disp_size
                      * min BOOST_PREVENT_MACRO_SUBSTITUTION (disp_size, temp);
- position[*v].y += displacement[*v].y / disp_size
+ position[*v].y += displacement[*v].y / disp_size
                      * min BOOST_PREVENT_MACRO_SUBSTITUTION (disp_size, temp);
- position[*v].x = min BOOST_PREVENT_MACRO_SUBSTITUTION
- (width / 2,
- max BOOST_PREVENT_MACRO_SUBSTITUTION(-width / 2,
+ position[*v].x = min BOOST_PREVENT_MACRO_SUBSTITUTION
+ (width / 2,
+ max BOOST_PREVENT_MACRO_SUBSTITUTION(-width / 2,
                                                                position[*v].x));
       position[*v].y = min BOOST_PREVENT_MACRO_SUBSTITUTION
- (height / 2,
- max BOOST_PREVENT_MACRO_SUBSTITUTION(-height / 2,
+ (height / 2,
+ max BOOST_PREVENT_MACRO_SUBSTITUTION(-height / 2,
                                                                position[*v].y));
     }
- } while (temp = cool());
+ } while ((temp = cool()));
 }
 
 namespace detail {


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