Skip to content

Commit e0bd4ba

Browse files
committed
Add tests
1 parent d195951 commit e0bd4ba

File tree

3 files changed

+372
-1
lines changed

3 files changed

+372
-1
lines changed

src/libraries/System.Private.CoreLib/src/System/String.Comparison.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ public static bool Equals(string? a, string? b)
694694
return EqualsUnrolled_0_to_8(a, b);
695695
}
696696
// Unroll using two Vector128s
697-
if (b.Length <= 16 && Vector128.IsHardwareAccelerated)
697+
else if (b.Length <= 16 && Vector128.IsHardwareAccelerated)
698698
{
699699
return EqualsUnrolled_9_to_16(a, b);
700700
}

0 commit comments

Comments
 (0)