Skip to content

Use withUnsafeMutableBufferPointer in NSData test. #1552

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 16, 2018
Merged

Use withUnsafeMutableBufferPointer in NSData test. #1552

merged 1 commit into from
May 16, 2018

Conversation

rudkx
Copy link
Contributor

@rudkx rudkx commented May 16, 2018

This ensures that:

@rudkx
Copy link
Contributor Author

rudkx commented May 16, 2018

@swift-ci Please test

This ensures that:
- We produce a well scoped stable pointer for the duration of the use.

- We aren't attempting to do an implicit conversion from an array to
  pointer in an argument position which is an autoclosure result,
  which is now disallowed in
  swiftlang/swift#16623.
@rudkx
Copy link
Contributor Author

rudkx commented May 16, 2018

@swift-ci Please test

@rudkx rudkx changed the title Use withUnsafeMutablePointer in NSData test. Use withUnsafeMutableBufferPointer in NSData test. May 16, 2018
Copy link
Contributor Author

@rudkx rudkx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@swift-ci Please test

@rudkx
Copy link
Contributor Author

rudkx commented May 16, 2018

@swift-ci Please test

@rudkx rudkx merged commit ac5d389 into swiftlang:master May 16, 2018
@rudkx rudkx deleted the fix-nsdata-test branch May 16, 2018 19:44
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