Skip to content

Replace two #ifs with #if/#else in new integer random algorithm #25352

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

Conversation

stephentyrone
Copy link
Contributor

Swift gets used on archs other than 32 and 64b Intel and ARM (IBM's systems, for instance); this would fail to compile.

Swift gets used on archs other than 32 and 64b Intel and ARM (e.g. IBM's systems); as written this would fail to compile there.
@stephentyrone
Copy link
Contributor Author

@swift-ci please smoke test and merge

@stephentyrone
Copy link
Contributor Author

A better fix would likely be to make the condition on MemoryLayout, but I'm going to eliminate the need for this soon enough that we can live with a slightly suboptimal condition for now.

@stephentyrone
Copy link
Contributor Author

@swift-ci please smoke test macOS

@stephentyrone stephentyrone merged commit bbd44a1 into swiftlang:master Jun 11, 2019
@stephentyrone stephentyrone deleted the change-arch-conditional branch June 11, 2019 18:36
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