From b322f868b308b53f3504ee5087f041473d390901 Mon Sep 17 00:00:00 2001 From: Eddie Waller Date: Wed, 12 Apr 2017 12:29:16 -0700 Subject: [PATCH] Fixes crash in Swift 3.1 when looping over UInts. This applies to anything that uses the GaussianBlur filter. --- framework/Source/Operations/GaussianBlur.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/Source/Operations/GaussianBlur.swift b/framework/Source/Operations/GaussianBlur.swift index b1ed4fec..bab72ebc 100755 --- a/framework/Source/Operations/GaussianBlur.swift +++ b/framework/Source/Operations/GaussianBlur.swift @@ -124,9 +124,9 @@ func optimizedGaussianOffsetsForRadius(_ blurRadius:UInt, sigma:Double) -> [Doub let numberOfOptimizedOffsets = min(blurRadius / 2 + (blurRadius % 2), 7) var optimizedOffsets = [Double]() - for currentOptimizedOffset in 0..