summaryrefslogtreecommitdiff
path: root/cpp/include
diff options
context:
space:
mode:
authorKen Giusti <kgiusti@apache.org>2011-02-03 15:56:08 +0000
committerKen Giusti <kgiusti@apache.org>2011-02-03 15:56:08 +0000
commit793c5c00e186ee60a7c9270093ab6591b385ed94 (patch)
treebb6f189ffca1b9b5bc1eb4cfa2d480a6319b74f9 /cpp/include
parent20403e011a0b0e665f5054d464dfb0f2280a774b (diff)
downloadqpid-python-793c5c00e186ee60a7c9270093ab6591b385ed94.tar.gz
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
Diffstat (limited to 'cpp/include')
-rw-r--r--cpp/include/qpid/RangeSet.h4
1 files changed, 2 insertions, 2 deletions
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 <class T> void RangeSet<T>::removeRange(const Range<T>& 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);
}
}