Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
Frugghi committed Feb 27, 2018
1 parent 69b2692 commit 174969b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SwiftLCS/SwiftLCS.swift
Original file line number Diff line number Diff line change
@@ -215,7 +215,9 @@ public extension Collection where Iterator.Element: Equatable {
if self[index] == otherCollection[otherIndex] {
lengths[(i &+ 1) &* columns &+ j &+ 1] = lengths[i &* columns &+ j] &+ 1
} else {
lengths[(i &+ 1) &* columns &+ j &+ 1] = Swift.max(lengths[(i &+ 1) &* columns &+ j], lengths[i &* columns &+ j &+ 1])
let lhs = lengths[(i &+ 1) &* columns &+ j]
let rhs = lengths[i &* columns &+ j &+ 1]
lengths[(i &+ 1) &* columns &+ j &+ 1] = Swift.max(lhs, rhs)
}

otherIndex = otherCollection.index(after: otherIndex)

0 comments on commit 174969b

Please sign in to comment.