-
Notifications
You must be signed in to change notification settings - Fork 190
[Windows] Fix Int32(bitPattern:) call failure #708
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
[Windows] Fix Int32(bitPattern:) call failure #708
Conversation
@swift-ci please test |
@swift-ci please test Windows platform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is fine for now. The problem is that GetProcessId
returns an unsigned value, so this can now trap right?
Ah that's true, I was trying to remember why we did this and I think that's why. Perhaps instead I should use |
Yes, I think that described behaviour was what we were after and missed the need for the |
@swift-ci please test |
@swift-ci please test Windows platform |
1 similar comment
@swift-ci please test Windows platform |
The windows toolchain build got a lot farther with this change, and the Windows test failure here is the known |
The Windows toolchain build for x86 was failing with:
In SCL-F we just call
Int32(GetProcessId(GetCurrentProcess()))
instead which works so this changes the swift-foundation implementation to do the same so that it is compatible across architectures.