Yet another RangeSet fix

This commit is contained in:
Vinnie Falco
2013-07-04 08:04:57 -07:00
parent d664e614b8
commit 026514157d

View File

@@ -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));