Skip to content

[Foundation][SR-3125] Fix Decimal init from (U)Int64 #18486

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 2 commits into from
Sep 1, 2018
Merged

[Foundation][SR-3125] Fix Decimal init from (U)Int64 #18486

merged 2 commits into from
Sep 1, 2018

Conversation

xwu
Copy link
Collaborator

@xwu xwu commented Aug 3, 2018

This PR synchronizes the Foundation overlay with the corresponding file in swift-corelibs-foundation by adding changes made in swiftlang/swift-corelibs-foundation#1550 with respect to Decimal initialization from UInt64 and Int64. (The remainder of that PR is unique to swift-corelibs-foundation.)

I was surveying outstanding bugs in Decimal and noticed that this one was fixed on Linux but not on Apple platforms. The actual changes here are not mine, and for the sake of synchrony no attempt is made to improve this code only minor changes are made because (for some unclear reason) ToT is rejecting the expression UInt64(abs(value)).

Resolves SR-3125.

@xwu xwu requested review from phausler and parkera August 3, 2018 08:15
@xwu
Copy link
Collaborator Author

xwu commented Aug 3, 2018

@swift-ci Please test OS X platform

@swift-ci
Copy link
Contributor

swift-ci commented Aug 3, 2018

Build failed
Swift Test OS X Platform
Git Sha - 89b26a7

@xwu
Copy link
Collaborator Author

xwu commented Aug 3, 2018

@swift-ci Please test OS X platform

@swiftlang swiftlang deleted a comment from swift-ci Aug 3, 2018
@xwu
Copy link
Collaborator Author

xwu commented Aug 3, 2018

@swift-ci Please test OS X platform

@xwu
Copy link
Collaborator Author

xwu commented Aug 4, 2018

@swift-ci Please smoke test Linux platform

@xwu
Copy link
Collaborator Author

xwu commented Aug 18, 2018

@parkera Sorry, just a ping.

@parkera
Copy link
Contributor

parkera commented Aug 20, 2018

Thanks for the reminder. This looks good to me. I'll ping @phausler one more time here, but otherwise we'll merge soon.

@xwu
Copy link
Collaborator Author

xwu commented Sep 1, 2018

@parkera Ping. Thanks!

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.

3 participants