Skip to content

Commit

Permalink
Fix if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
zenangst committed Oct 5, 2018
1 parent c286d97 commit 6265a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Shared/Algorithm.swift
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 6265a61

Please sign in to comment.