Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82445 - trunk/boost/graph/detail
From: jewillco_at_[hidden]
Date: 2013-01-10 22:05:09


Author: jewillco
Date: 2013-01-10 22:05:08 EST (Thu, 10 Jan 2013)
New Revision: 82445
URL: http://svn.boost.org/trac/boost/changeset/82445

Log:
Changed loop header to avoid GCC warning from -Wunsafe-loop-optimizations
Text files modified:
   trunk/boost/graph/detail/histogram_sort.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/graph/detail/histogram_sort.hpp
==============================================================================
--- trunk/boost/graph/detail/histogram_sort.hpp (original)
+++ trunk/boost/graph/detail/histogram_sort.hpp 2013-01-10 22:05:08 EST (Thu, 10 Jan 2013)
@@ -69,7 +69,7 @@
   // m_rowstart
   EdgeIndex start_of_this_row = 0;
   starts[0] = start_of_this_row;
- for (vertices_size_type i = 1; i <= numkeys; ++i) {
+ for (vertices_size_type i = 1; i < numkeys + 1; ++i) {
     start_of_this_row += starts[i];
     starts[i] = start_of_this_row;
   }


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