Skip to content

Commit

Permalink
Kitura/Kitura#616 Changed == to !=
Browse files Browse the repository at this point in the history
  • Loading branch information
irar2 committed Jul 17, 2016
1 parent 606caea commit 4f67773
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
}
}

1 comment on commit 4f67773

@shmuelk
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix is correct.

Please sign in to comment.