From 6c8849b0446cfb7583ebe83df9bcc0013c07b5f2 Mon Sep 17 00:00:00 2001 From: Artyom Date: Fri, 26 Jun 2020 15:01:19 +0300 Subject: [PATCH] Fix typecheck --- Source/model/draw/ColorMatrix.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/model/draw/ColorMatrix.swift b/Source/model/draw/ColorMatrix.swift index 0ee4ec31..9ac27a5a 100644 --- a/Source/model/draw/ColorMatrix.swift +++ b/Source/model/draw/ColorMatrix.swift @@ -57,7 +57,7 @@ open class ColorMatrix { let m3 = [-0.213, -0.715, 0.928, 0.143, 0.140, -0.283, -0.787, 0.715, 0.072] - let a = { i in + let a = { (i: Int) -> Double in m1[i] + c * m2[i] + s * m3[i] } self.init(values: [a(0), a(1), a(2), 0, 0,