Skip to content

Commit

Permalink
Fix crash in Xcode 13.3 due to Swift 5.6 regression
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklockwood committed Mar 26, 2022
1 parent 2a41d40 commit 929dd4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Expression.swift
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ public final class Expression: CustomStringConvertible {
root = expression.root.optimized(
withImpureSymbols: impureSymbols,
pureSymbols: {
if let fn = pureSymbols($0) ?? Expression.mathSymbols[$0] ?? Expression.boolSymbols[$0] {
if let fn = (pureSymbols($0) ?? Expression.mathSymbols[$0]) ?? Expression.boolSymbols[$0] {
return fn
}
if case let .function(name, _) = $0 {
Expand Down

0 comments on commit 929dd4d

Please sign in to comment.