Skip to content

Commit

Permalink
Fix bug in EqualsIgnoreCaseUtf8_Scalar (#89174)
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorBo committed Jul 19, 2023
1 parent 7d9f506 commit 718f02e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,13 +296,7 @@ internal static bool EqualsIgnoreCaseUtf8_Scalar(ref byte charA, int lengthA, re
return true;
}

if (!Utf8Utility.UInt32OrdinalIgnoreCaseAscii(valueAu32, valueBu32))
{
return false;
}

byteOffset += 4;
length -= 4;
return Utf8Utility.UInt32OrdinalIgnoreCaseAscii(valueAu32, valueBu32);
}

Debug.Assert(length == 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,6 @@ async Task PerformFloatingPointSerialization(string testString)
[InlineData("\u0020Inf\u0069ni\u0074y")] // " Infinity"
[InlineData("\u002BInf\u0069nity")] // "+Infinity"
#pragma warning restore xUnit1025
[ActiveIssue("https://github.com/dotnet/runtime/issues/89094", TestPlatforms.OSX)]
public async Task FloatingPointConstants_Fail(string testString)
{
string testStringAsJson = $@"""{testString}""";
Expand Down

0 comments on commit 718f02e

Please sign in to comment.