mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
Yet another RangeSet fix
This commit is contained in:
@@ -99,7 +99,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)
|
||||
{
|
||||
@@ -116,6 +116,8 @@ uint32 RangeSet::prevMissing (uint32 v) const
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
result = v - 1;
|
||||
}
|
||||
|
||||
bassert (result == absent || !hasValue (result));
|
||||
|
||||
Reference in New Issue
Block a user