From dc6dffbb77e93bc65f02a2717afbefe7254d0bc3 Mon Sep 17 00:00:00 2001 From: Timofey Solomko Date: Sat, 29 Oct 2016 17:46:46 +0300 Subject: [PATCH] Fixed a problem with repeated strings in data. --- Sources/Deflate.swift | 2 +- Tests/SWCompressionTests.swift | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Sources/Deflate.swift b/Sources/Deflate.swift index 720f7d4c..43d59ace 100644 --- a/Sources/Deflate.swift +++ b/Sources/Deflate.swift @@ -254,7 +254,7 @@ public class Deflate { if length == distance { out.append(contentsOf: Array(out[out.count - distance..