diff --git a/prototype/Doubt/SES.swift b/prototype/Doubt/SES.swift index 1031798b8..f1b441b02 100644 --- a/prototype/Doubt/SES.swift +++ b/prototype/Doubt/SES.swift @@ -21,7 +21,7 @@ public func SES(a: [Term], _ b: [Term], cost: Free>! - matrix = Matrix(width: a.count + 1, height: b.count + 1) { i, j in + matrix = Matrix(width: Int(a.count.toIntMax() + 1), height: Int(b.count.toIntMax() + 1)) { i, j in // Some explanation is warranted: // // 1. `matrix` captures itself during construction, because each vertex in the edit graph depends on other vertices. This is safe, because a) `Matrix` populates its fields lazily, and b) vertices only depend on those vertices downwards and rightwards of them.