Skip to content

Align __NSCFType with CFRuntimeBase / _CFInfo #1694

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
Jan 2, 2019
Merged

Align __NSCFType with CFRuntimeBase / _CFInfo #1694

merged 1 commit into from
Jan 2, 2019

Conversation

Kaiede
Copy link
Contributor

@Kaiede Kaiede commented Sep 13, 2018

__NSCFType has been using Int32 for _cfinfo. More recently in Swift 4, it’s been noticed that this can cause problems on 32-bit ARM and should be aligned with _CFInfo instead.

Currently, there are no known issues on 32-bit ARM because of this. However, it'd be nice to fix this before some future change breaks because _cfinfo is an Int32.

__NSCFType has been using Int32 for _cfinfo. More recently in Swift 4, it’s been noticed that this can cause problems on 32-bit ARM and should be aligned with _CFInfo instead.
@Kaiede
Copy link
Contributor Author

Kaiede commented Sep 13, 2018

Related to #1693

This PR is a piece of #1689, which was fixed more correctly by #1693

@parkera parkera self-requested a review September 13, 2018 18:22
@parkera
Copy link
Contributor

parkera commented Sep 13, 2018

@swift-ci test

@shahmishal
Copy link
Member

@swift-ci test macOS

@spevans
Copy link
Contributor

spevans commented Sep 14, 2018

@shahmishal Looking at the CI logs @ https://ci.swift.org/job/swift-corelibs-foundation-PR-macOS/2/console for the macOS testing, I cant see it actually running the tests for Foundation, although it is building Foundation. Is this as expected?

@Kaiede
Copy link
Contributor Author

Kaiede commented Sep 14, 2018

@spevans I'm curious about that too.

@compnerd
Copy link
Member

compnerd commented Jan 2, 2019

Seems that this is ready to go, and already approved by @parkera

@compnerd compnerd merged commit f8c21d3 into swiftlang:master Jan 2, 2019
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.

5 participants