Showing the changes to Source/Libraries/GSF.Core.Shared/ArrayExtensions.cs (1 of 1 file). Show all
Unified · Split
| @@ -457,7 +457,7 @@ namespace GSF · 456 unmodified lines | |||
| 457 | // If sequence doesn't match, search for next first-item | 457 | // If sequence doesn't match, search for next first-item |
| 458 | if (array[index + x].CompareTo(sequenceToFind[x]) != 0) | 458 | if (array[index + x].CompareTo(sequenceToFind[x]) != 0) |
| 459 | { | 459 | { |
| 460 | index = Array.IndexOf(array, sequenceToFind[0], index + 1, length - (index + 1)); | 460 | index = Array.IndexOf(array, sequenceToFind[0], index + 1, (startIndex + length) - (index + 1)); |
| 461 | break; | 461 | break; |
| 462 | } | 462 | } |
| 463 | 463 | ||