mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +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)
|
else if (v > cur->second)
|
||||||
{
|
{
|
||||||
// This range is "above" the interval
|
// v lies "above" the interval
|
||||||
|
|
||||||
if (v == cur->second + 1)
|
if (v == cur->second + 1)
|
||||||
{
|
{
|
||||||
@@ -116,6 +116,8 @@ uint32 RangeSet::prevMissing (uint32 v) const
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
result = v - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
bassert (result == absent || !hasValue (result));
|
bassert (result == absent || !hasValue (result));
|
||||||
|
|||||||
Reference in New Issue
Block a user