Skip to content

Conversation

NevinBR
Copy link
Contributor

@NevinBR NevinBR commented Feb 4, 2020

Allow the closed-range version of FixedWidthInteger.random(in:using:) to work for types larger than 64 bits when the entire valid range (.min ... .max) is passed in.

Also, closed ranges are never empty, so the unnecessary !isEmpty precondition has been removed.

Allow the closed-range version of `FixedWidthInteger.random(in:using:)` to work for types larger than 64 bits when the entire valid range (`.min ... .max`) is passed in.

Also, closed ranges are never empty, so the unnecessary `!isEmpty` precondition has been removed.
@stephentyrone
Copy link
Contributor

@swift-ci please test

@stephentyrone stephentyrone merged commit a7f2878 into swiftlang:master Feb 5, 2020
@stephentyrone
Copy link
Contributor

Thanks @NevinBR!

@NevinBR NevinBR deleted the patch-2 branch May 9, 2020 23:38
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.

2 participants