From 6265a61f031335e37d7c5d9abb28420065b676ac Mon Sep 17 00:00:00 2001 From: Christoffer Winterkvist Date: Fri, 5 Oct 2018 20:44:48 +0200 Subject: [PATCH] Fix if statement --- Source/Shared/Algorithm.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Shared/Algorithm.swift b/Source/Shared/Algorithm.swift index 88bb678..cc69640 100644 --- a/Source/Shared/Algorithm.swift +++ b/Source/Shared/Algorithm.swift @@ -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],