Skip to content

Commit

Permalink
Reversed warning fix for macOS which doesn't build on Linux.
Browse files Browse the repository at this point in the history
Not quite sure what's going on here - I thought I was testing with Swift 4.1 on both platforms, but it appears not...
  • Loading branch information
samdeane committed Mar 10, 2018
1 parent d6245a1 commit aebca51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Docopt/LeafPattern.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func ==(lhs: LeafPattern, rhs: LeafPattern) -> Bool {
} else if let lval = lhs.value as? Int, let rval = rhs.value as? Int {
valEqual = lval == rval
} else {
valEqual = lhs.value as AnyObject === rhs.value as AnyObject
valEqual = lhs.value as? AnyObject === rhs.value as? AnyObject
}
return lhs.name == rhs.name && valEqual
}

0 comments on commit aebca51

Please sign in to comment.