|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r79671 - trunk/boost/geometry/algorithms/detail/overlay
From: barend.gehrels_at_[hidden]
Date: 2012-07-22 09:31:27
Author: barendgehrels
Date: 2012-07-22 09:31:26 EDT (Sun, 22 Jul 2012)
New Revision: 79671
URL: http://svn.boost.org/trac/boost/changeset/79671
Log:
[geometry] rephrased solution to avoid signed/unsigned warning
Text files modified:
trunk/boost/geometry/algorithms/detail/overlay/convert_ring.hpp | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
Modified: trunk/boost/geometry/algorithms/detail/overlay/convert_ring.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/detail/overlay/convert_ring.hpp (original)
+++ trunk/boost/geometry/algorithms/detail/overlay/convert_ring.hpp 2012-07-22 09:31:26 EDT (Sun, 22 Jul 2012)
@@ -77,15 +77,15 @@
}
else
{
- // Avoid adding interior rings which are invalid because of number of points:
- if (geometry::num_points(source) >=
- core_detail::closure::minimum_ring_size
- <
- geometry::closure
- <
- Destination
- >::value
- >::value)
+ // Avoid adding interior rings which are invalid
+ // because of its number of points:
+ std::size_t const min_num_points
+ = core_detail::closure::minimum_ring_size
+ <
+ geometry::closure<Destination>::value
+ >::value;
+
+ if (geometry::num_points(source) >= min_num_points)
{
interior_rings(destination).resize(
interior_rings(destination).size() + 1);
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