diff options
author | Stephen Toub <stoub@microsoft.com> | 2015-03-05 20:15:54 -0500 |
---|---|---|
committer | Stephen Toub <stoub@microsoft.com> | 2015-03-05 20:15:54 -0500 |
commit | 9435787def0026537f6b019c5caaa3d5de9a4053 (patch) | |
tree | 1cba601f41cfe828f687ac72a5c39c5c462876f5 /src | |
parent | b44552996b0b90f21ef4e9a8a1eb7790e8816186 (diff) | |
download | coreclr-9435787def0026537f6b019c5caaa3d5de9a4053.tar.gz coreclr-9435787def0026537f6b019c5caaa3d5de9a4053.tar.bz2 coreclr-9435787def0026537f6b019c5caaa3d5de9a4053.zip |
Fix exception in CompareInfo.IndexOfOrdinal on Unix
A one-character typo is leading to an out of range exception.
Diffstat (limited to 'src')
-rw-r--r-- | src/mscorlib/corefx/System/Globalization/CompareInfo.Unix.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mscorlib/corefx/System/Globalization/CompareInfo.Unix.cs b/src/mscorlib/corefx/System/Globalization/CompareInfo.Unix.cs index 38b10dacb7..94b64a4e90 100644 --- a/src/mscorlib/corefx/System/Globalization/CompareInfo.Unix.cs +++ b/src/mscorlib/corefx/System/Globalization/CompareInfo.Unix.cs @@ -31,7 +31,7 @@ namespace System.Globalization for (int i = 0; i < source.Length; i++) { for (int j = 0; j < value.Length; j++) { - if (source[i + j] != value[i]) { + if (source[i + j] != value[j]) { break; } |