Skip to content

Simplify implementation of init(indexes:length:). #27

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
Dec 6, 2015

Conversation

BryanHoke
Copy link
Contributor

In init(indexes:length:), initialize _indexes to an Array constructed with an UnsafeBufferPointer built from indexes, instead of initializing it to an empty array and adding each idx in indexes to it in a loop.

In `init(indexes:length:)`, initialize `_indexes` to an `Array` constructed with an `UnsafeBufferPointer` built from `indexes`, instead of initializing it to an empty array and adding each `idx` in `indexes` to it in a loop.
parkera added a commit that referenced this pull request Dec 6, 2015
Simplify implementation of `init(indexes:length:)`.
@parkera parkera merged commit cfa6894 into swiftlang:master Dec 6, 2015
@parkera
Copy link
Contributor

parkera commented Dec 6, 2015

Thanks!

atrick pushed a commit to atrick/swift-corelibs-foundation that referenced this pull request Jan 12, 2021
[build] Fix warnings about Foundation.Process on Linux
kateinoigakukun pushed a commit to kateinoigakukun/swift-corelibs-foundation that referenced this pull request Apr 29, 2021
…60d33200525861e8fc61

Add package_path as a substitution so tests can "poke" at the snapsho…
kateinoigakukun pushed a commit to kateinoigakukun/swift-corelibs-foundation that referenced this pull request Oct 11, 2023
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