We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10883a7 commit ea00434Copy full SHA for ea00434
src/libraries/System.Text.RegularExpressions/gen/RegexGenerator.Emitter.cs
@@ -837,7 +837,7 @@ void EmitFixedSet_LeftToRight()
837
writer.WriteLine($"// The primary set being searched for was found. {numRemainingSets} more set{(numRemainingSets > 1 ? "s" : "")} will be checked so as");
838
writer.WriteLine($"// to minimize the number of places TryMatchAtCurrentPosition is run unnecessarily.");
839
writer.WriteLine($"// Make sure {(numRemainingSets > 1 ? "they fit" : "it fits")} in the remainder of the input.");
840
- using (EmitBlock(writer, $"if ((uint)(i + {maxDistance}) >= span.Length)"))
+ using (EmitBlock(writer, $"if ((uint)(i + {maxDistance}) >= (uint)span.Length)"))
841
{
842
noMatchFoundLabelNeeded = true;
843
Goto(NoMatchFound);
0 commit comments