mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
Merge branch 'develop' of github.com:ripple/rippled into develop
This commit is contained in:
@@ -85,6 +85,10 @@ uint32 RangeSet::prevMissing (uint32 v) const
|
||||
{
|
||||
checkInternalConsistency ();
|
||||
|
||||
// Handle the case where the loop reaches the terminating condition
|
||||
//
|
||||
result = v - 1;
|
||||
|
||||
for (const_reverse_iterator cur = mRanges.rbegin (); cur != mRanges.rend (); ++cur)
|
||||
{
|
||||
// See if v is in the range
|
||||
@@ -99,7 +103,7 @@ uint32 RangeSet::prevMissing (uint32 v) const
|
||||
}
|
||||
else if (v > cur->second)
|
||||
{
|
||||
// This range is "above" the interval
|
||||
// v lies "above" the interval
|
||||
|
||||
if (v == cur->second + 1)
|
||||
{
|
||||
@@ -108,10 +112,6 @@ uint32 RangeSet::prevMissing (uint32 v) const
|
||||
else
|
||||
result = absent;
|
||||
}
|
||||
else
|
||||
{
|
||||
result = v - 1;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user