Skip to content

Commit

Permalink
chore: reverting iterators
Browse files Browse the repository at this point in the history
  • Loading branch information
coder2000 committed Jul 2, 2024
1 parent c235a1e commit cf1636b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Ubiety.Stringprep.Core/ValueRangeCompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,13 @@ private static List<int> DoRemove(List<int> list, IList<int> removals)
{
if (removals[i] == list[j] || (removals[i] < list[j] && (i == 0 || removals[i] > list[j - 1])))
{
list.RemoveAt(j - 1);
CloseRemove(list, removals, ref i, ref j - 1);
list.RemoveAt(j--);
CloseRemove(list, removals, ref i, ref j);
}
else if (removals[i] > list[j] && removals[i] < list[j + 1])
{
list.Insert(j + 1, removals[i] - 1);
CloseRemove(list, removals, ref i, ref j + 1);
list.Insert(++j, removals[i] - 1);
CloseRemove(list, removals, ref i, ref j);
}
}
}
Expand Down

0 comments on commit cf1636b

Please sign in to comment.