From 85be68c870d58685d748d282dba301efd75d642d Mon Sep 17 00:00:00 2001 From: Kenneth Anthony Giusti Date: Thu, 3 Feb 2011 15:56:08 +0000 Subject: QPID-3035: fix incorrect removal at end of SequenceSet git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1066841 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/include/qpid/RangeSet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/include') diff --git a/cpp/include/qpid/RangeSet.h b/cpp/include/qpid/RangeSet.h index 1b2e4201a6..36991fd784 100644 --- a/cpp/include/qpid/RangeSet.h +++ b/cpp/include/qpid/RangeSet.h @@ -265,8 +265,8 @@ template void RangeSet::removeRange(const Range& r) { } for (j = i; j != ranges.end() && r.contains(*j); ++j) ; // Ranges to erase. - if (j != ranges.end() && j->end() > r.end()) - j->begin(r.end()); // Truncate j + if (j != ranges.end() && r.end() > j->begin()) + j->begin(r.end()); // Truncate j ranges.erase(i,j); } } -- cgit v1.2.1