Skip to content

NSDecimalNumber: Fix comparison with NSNumber #2837

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 10, 2020

Conversation

spevans
Copy link
Contributor

@spevans spevans commented Jul 4, 2020

  • NSDecimalNumber: When compare(:) / isEqual(:) has a rhs which is an
    NSNumber that cannot be cast as an NSDecimalNumber, use
    NSNumber.compare() to test them.

  • NSNumber: Add missing isEqual(to:)

- NSDecimalNumber: When compare(_:) / isEqual(_:) has a rhs which is an
  NSNumber that cannot be cast as an NSDecimalNumber, use
  NSNumber.compare() to test them.

- NSNumber: Add missing isEqual(to:)
@spevans
Copy link
Contributor Author

spevans commented Jul 4, 2020

@swift-ci please test

@spevans spevans merged commit 514c9e9 into swiftlang:master Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant