Skip to content

Commit ad17533

Browse files
Update src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/RegexCompiler.cs
Co-authored-by: Stephen Toub <stoub@microsoft.com>
1 parent 9d6da78 commit ad17533

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions

src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/RegexCompiler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4590,7 +4590,7 @@ void EmitSingleCharRepeater(RegexNode node, bool emitLengthChecksIfRequired = tr
45904590
// we unroll up to this threshold and use a loop with vectorization beyond it.
45914591
const int MaxUnrollSize = 8;
45924592

4593-
if (iterations <= MaxUnrollSize)
4593+
if (iterations < MaxUnrollSize)
45944594
{
45954595
// if (slice[sliceStaticPos] != c1 ||
45964596
// slice[sliceStaticPos + 1] != c2 ||

0 commit comments

Comments
 (0)