Skip to content

Commit 8f259e6

Browse files
author
Prashanth Govindarajan
committed
Fix bug
1 parent 6d77419 commit 8f259e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/System.Private.CoreLib/src/System/Text/ASCIIUtility.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ private static unsafe nuint GetIndexOfFirstNonAsciiByte_Intrinsified(byte* pBuff
355355
throw new PlatformNotSupportedException();
356356
}
357357

358-
if (ContainsNonAsciiByte(currentMask | secondMask))
358+
if (ContainsNonAsciiByte(currentMask) || ContainsNonAsciiByte(secondMask))
359359
{
360360
goto FoundNonAsciiDataInInnerLoop;
361361
}

0 commit comments

Comments
 (0)