Skip to content

Commit

Permalink
Kitura/Kitura#616 Changed == to != (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
irar2 authored and shmuelk committed Jul 17, 2016
1 parent 606caea commit 54165c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/SwiftyJSON.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1833,9 +1833,9 @@ func <=(lhs: NSNumber, rhs: NSNumber) -> Bool {
return false
default:
#if os(Linux)
return lhs.compare(rhs) == NSComparisonResult.orderedDescending
return lhs.compare(rhs) != NSComparisonResult.orderedDescending
#else
return lhs.compare(rhs) == ComparisonResult.orderedDescending
return lhs.compare(rhs) != ComparisonResult.orderedDescending
#endif
}
}
Expand All @@ -1849,9 +1849,9 @@ func >=(lhs: NSNumber, rhs: NSNumber) -> Bool {
return false
default:
#if os(Linux)
return lhs.compare(rhs) == NSComparisonResult.orderedAscending
return lhs.compare(rhs) != NSComparisonResult.orderedAscending
#else
return lhs.compare(rhs) == ComparisonResult.orderedAscending
return lhs.compare(rhs) != ComparisonResult.orderedAscending
#endif
}
}

0 comments on commit 54165c7

Please sign in to comment.