Skip to content

Commit

Permalink
Merge pull request #13 from zenangst/fix/crash-with-only-one-new-matc…
Browse files Browse the repository at this point in the history
…h-part-deux

Fix if statement check if 4th pass should be invoked
  • Loading branch information
zenangst authored Oct 5, 2018
2 parents 6b6ae8c + 6265a61 commit 585e6b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Shared/Algorithm.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Algorithm {
// 4th Pass
offset = 1

if newArray.count > offset {
if offset < newArray.count - 1 {
repeat {
if case let .indexInOther(otherIndex) = newArray[offset], otherIndex + 1 < oldArray.count,
case let .tableEntry(newEntry) = newArray[offset + 1],
Expand Down

0 comments on commit 585e6b3

Please sign in to comment.