Skip to content

Commit c32dd4e

Browse files
authored
Merge pull request #978 from e78l/fix-warnings2
2 parents fdbed5d + 2fb3ee3 commit c32dd4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/NSData.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ open class NSData : NSObject, NSCopying, NSMutableCopying, NSSecureCoding {
587587
}
588588
return location.map {NSRange(location: $0, length: search.count)} ?? NSRange(location: NSNotFound, length: 0)
589589
}
590-
private static func searchSubSequence<T : Collection, T2 : Sequence>(_ subSequence : T2, inSequence seq: T,anchored : Bool) -> T.Index? where T.Iterator.Element : Equatable, T.Iterator.Element == T2.Iterator.Element, T.SubSequence.Iterator.Element == T.Iterator.Element, T.Indices.Iterator.Element == T.Index {
590+
private static func searchSubSequence<T : Collection, T2 : Sequence>(_ subSequence : T2, inSequence seq: T,anchored : Bool) -> T.Index? where T.Iterator.Element : Equatable, T.Iterator.Element == T2.Iterator.Element {
591591
for index in seq.indices {
592592
if seq.suffix(from: index).starts(with: subSequence) {
593593
return index

0 commit comments

Comments
 (0)