diff options
Diffstat (limited to 'qpid/cpp/include/qpid/RangeSet.h')
-rw-r--r-- | qpid/cpp/include/qpid/RangeSet.h | 4 |
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); } } |