summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2018-04-10 04:56:33 -0700
committerGitHub <noreply@github.com>2018-04-10 04:56:33 -0700
commit31bd5a4f8d54f2d7a2c412403f1589643bb08578 (patch)
treec5dd6fd83b2754fca06458f8bcaa2af4a1c96410
parent51d5948ab7a395ae701a3def54b5a22d6f92b604 (diff)
downloadcoreclr-31bd5a4f8d54f2d7a2c412403f1589643bb08578.tar.gz
coreclr-31bd5a4f8d54f2d7a2c412403f1589643bb08578.tar.bz2
coreclr-31bd5a4f8d54f2d7a2c412403f1589643bb08578.zip
Use non-inlineable overload for rare CompareOrdinalIgnoreCase path (#17492)
This fixes regression introduced in #17237.
-rw-r--r--src/mscorlib/shared/System/String.Comparison.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mscorlib/shared/System/String.Comparison.cs b/src/mscorlib/shared/System/String.Comparison.cs
index 2a8be32d3f..32951b4aa5 100644
--- a/src/mscorlib/shared/System/String.Comparison.cs
+++ b/src/mscorlib/shared/System/String.Comparison.cs
@@ -317,7 +317,7 @@ namespace System
return CompareOrdinalIgnoreCaseHelper(strA, strB);
}
#endif
- return CompareInfo.CompareOrdinalIgnoreCase(strA, strB);
+ return CompareInfo.CompareOrdinalIgnoreCase(strA, 0, strA.Length, strB, 0, strB.Length);
default:
throw new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType));