Skip to content

Threading: repair the 32-bit Windows builds #59565

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
Jun 18, 2022

Conversation

compnerd
Copy link
Member

This repairs the Windows x86 SDK build after #59287. Use intptr_t
rather than the explicitly sized integer as this is always guaranteed to
be the size of the pointer width (irrespective of LP64/LP32 or
LLP64/LLP32). Since this impacts only the once predicate, this
shouldn't impact any assumptions around structure sizes.

This repairs the Windows x86 SDK build after swiftlang#59287.  Use `intptr_t`
rather than the explicitly sized integer as this is always guaranteed to
be the size of the pointer width (irrespective of LP64/LP32 or
LLP64/LLP32).  Since this impacts only the once predicate, this
shouldn't impact any assumptions around structure sizes.
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

CC: @al45tair

@al45tair
Copy link
Contributor

LGTM. Thanks for fixing it (I'm going to look at a couple of related issues on other platforms on Monday).

@compnerd compnerd merged commit 9d791b5 into swiftlang:main Jun 18, 2022
@compnerd compnerd deleted the 32-bit-initializers branch June 18, 2022 21:00
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