summaryrefslogtreecommitdiff
path: root/qpid/cpp/include
diff options
context:
space:
mode:
authorKenneth Anthony Giusti <kgiusti@apache.org>2011-02-03 15:56:08 +0000
committerKenneth Anthony Giusti <kgiusti@apache.org>2011-02-03 15:56:08 +0000
commit786ea3c47f962357bc06f956b0397182e4fc6cd6 (patch)
tree355385b757702ed1ef0a0eddee9cd355c7c6675d /qpid/cpp/include
parent525eca5124d9a15e0c355baa66bf04e9109add21 (diff)
downloadqpid-python-786ea3c47f962357bc06f956b0397182e4fc6cd6.tar.gz
QPID-3035: fix incorrect removal at end of SequenceSet
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1066841 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/include')
-rw-r--r--qpid/cpp/include/qpid/RangeSet.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/include/qpid/RangeSet.h b/qpid/cpp/include/qpid/RangeSet.h
index 1b2e4201a6..36991fd784 100644
--- a/qpid/cpp/include/qpid/RangeSet.h
+++ b/qpid/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);
}
}