Skip to content
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

[4.2] NSDecimalNumber: Add missing init(value:) initialisers. #1896

Merged
merged 1 commit into from Feb 12, 2019

Conversation

spevans
Copy link
Collaborator

@spevans spevans commented Feb 11, 2019

  • Fix init(mantissa:exponent:isNegative:) to set the mantissa
    correctly.

(cherry picked from commit 641e2cb)

@spevans
Copy link
Collaborator Author

spevans commented Feb 11, 2019

@swift-ci test 4.2

@spevans spevans changed the title NSDecimalNumber: Add missing init(value:) initialisers. [4.2] NSDecimalNumber: Add missing init(value:) initialisers. Feb 11, 2019
@spevans spevans requested a review from weissi February 11, 2019 19:10
Copy link
Member

@weissi weissi left a comment

Choose a reason for hiding this comment

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

need to double check if we can add API here.

@spevans
Copy link
Collaborator Author

spevans commented Feb 11, 2019

If I recall correctly I think these initialisers were missing originally but I can always remove them if necessary. The init(mantissa: UInt64, exponent: Int16, isNegative: Bool) initialiser is a bugfix though.

@weissi
Copy link
Member

weissi commented Feb 11, 2019

@spevans yes, I think we should try to not add API (in this case the inits) unless strictly necessary. This might break code (because it might cause ambiguity).

- Set the mantissa correctly.

(cherry picked from commit 641e2cb)
@spevans
Copy link
Collaborator Author

spevans commented Feb 11, 2019

@swift-ci test 4.2

1 similar comment
@spevans
Copy link
Collaborator Author

spevans commented Feb 11, 2019

@swift-ci test 4.2

@compnerd
Copy link
Collaborator

@parkera - is there an ability to run a source compatibility test like on swift with Foundation?

@spevans
Copy link
Collaborator Author

spevans commented Feb 12, 2019

@weissi I removed the other inits

@weissi weissi merged commit 6a0c9af into apple:swift-4.2-branch Feb 12, 2019
@parkera
Copy link
Member

parkera commented Feb 13, 2019

@compnerd not sure about the source compatibility test; @shahmishal do you know if we can trigger that from here?

@shahmishal
Copy link
Member

shahmishal commented Feb 13, 2019

Yes it’s supported Sorry, it's not supported with 4.2 branch testing.

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.

None yet

5 participants