Skip to content

Remove for loop in computing mantissa double value #8804

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
May 27, 2017

Conversation

chrisamanse
Copy link
Contributor

Replace unnecessary for loop and switch statement for computing double value from mantissa

@CodaFi
Copy link
Contributor

CodaFi commented Apr 18, 2017

It may be unnecessary, but its structure was much clearer than this IMO. Still, I can't argue with the cleanup. Please submit this patch to corelibs-foundation to patch NSDecimal.swift too to see what they say.

@swift-ci please smoke test

@CodaFi CodaFi requested a review from parkera April 18, 2017 20:54
@chrisamanse
Copy link
Contributor Author

Will do. The issue with the for loop and switch case inside was that there's dead code in default case.

@phausler
Copy link
Contributor

I like this by far better than the transliterated version that I initially had here.

@phausler phausler merged commit c783d27 into swiftlang:master May 27, 2017
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