|
Boost-Commit : |
From: hartmut.kaiser_at_[hidden]
Date: 2007-10-07 10:46:52
Author: hkaiser
Date: 2007-10-07 10:46:52 EDT (Sun, 07 Oct 2007)
New Revision: 39759
URL: http://svn.boost.org/trac/boost/changeset/39759
Log:
Spirit: Fixed a couple of pedantic gcc warnings.
Text files modified:
trunk/boost/spirit/utility/impl/chset/range_run.ipp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Modified: trunk/boost/spirit/utility/impl/chset/range_run.ipp
==============================================================================
--- trunk/boost/spirit/utility/impl/chset/range_run.ipp (original)
+++ trunk/boost/spirit/utility/impl/chset/range_run.ipp 2007-10-07 10:46:52 EDT (Sun, 07 Oct 2007)
@@ -129,7 +129,7 @@
range_compare<CharT>()
);
- if (iter != run.end() && iter->includes(r) ||
+ if ((iter != run.end() && iter->includes(r)) ||
((iter != run.begin()) && (iter - 1)->includes(r)))
return;
@@ -166,6 +166,7 @@
if ((iter != run.begin()) &&
(left_iter = (iter - 1))->includes(r.first))
+ {
if (left_iter->last > r.last)
{
CharT save_last = left_iter->last;
@@ -177,7 +178,8 @@
{
left_iter->last = r.first-1;
}
-
+ }
+
iterator i = iter;
while (i != run.end() && r.includes(*i))
i++;
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