-
Notifications
You must be signed in to change notification settings - Fork 470
Revert "Use numericCast() to get the correct type when creating a dis… #446
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
Revert "Use numericCast() to get the correct type when creating a dis… #446
Conversation
@swift-ci please test |
CC: @ktopley-apple |
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.
This isn't correct. The last change I made is needed for the non-Windows case:
#if os(Windows) && arch(x86_64)
let flags = dispatch_block_flags_t(UInt32(flags.rawValue))
#else
let flags: dispatch_block_flags_t = numericCast(flags.rawValue)
#endif
1de7509
to
102c1c7
Compare
Oh, I see; okay, changed to a partial revert. Thanks! |
@swift-ci please test |
…patch_block_flags_t." This (partially) reverts commit b048490. Unfortunately, the numeric cast'ed value cannot be used to construct the dispatch_flags_t type. Trying to change to an explicit construction also fails. This repairs the Windows build for the time being. Use the `numericCast` for other targets.
102c1c7
to
a9e4d44
Compare
@swift-ci please test |
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.
Looks good now and it should build.
@ktopley-apple - okay to merge? |
Yes, done. Thanks for fixing this up 👍 |
My pleasure! |
Revert "Use numericCast() to get the correct type when creating a dis… Signed-off-by: Kim Topley <[email protected]>
…patch_block_flags_t."
This reverts commit b048490.
Unfortunately, the numeric cast'ed value cannot be used to construct the
dispatch_flags_t type. Trying to change to an explicit construction
also fails. This repairs the Windows build for the time being.