Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/libraries/System.Private.CoreLib/src/System/String.Compari…
…son.cs

Co-authored-by: Miha Zupan <[email protected]>
  • Loading branch information
EgorBo and MihaZupan authored Feb 5, 2022
commit 147647dec6d434c37e72447733fae48119f40b90
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ static bool EqualsUnrolled_0_to_8(string? a, string b)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
static bool EqualsUnrolled_9_to_16(string? a, string b)
{
if (a != null && a.Length >= b.Length)
if (a != null && a.Length == b.Length)
{
// Load 'a' into two vectors with overlapping.
Vector128<ushort> v2 = Vector128.LoadUnsafe(
Expand Down