File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public class DispatchWorkItem {
41
41
42
42
public init ( qos: DispatchQoS = . unspecified, flags: DispatchWorkItemFlags = [ ] , block: @escaping @convention ( block) ( ) -> ( ) ) {
43
43
#if os(Windows) && (arch(arm64) || arch(x86_64))
44
- let flags = dispatch_block_flags_t ( UInt32 ( flags. rawValue) )
44
+ let flags = dispatch_block_flags_t ( rawValue : UInt32 ( flags. rawValue) )
45
45
#else
46
46
let flags : dispatch_block_flags_t = numericCast ( flags. rawValue)
47
47
#endif
@@ -53,7 +53,7 @@ public class DispatchWorkItem {
53
53
// dispatch_block_t, as we know the lifetime of the block in question.
54
54
internal init ( flags: DispatchWorkItemFlags = [ ] , noescapeBlock: ( ) -> ( ) ) {
55
55
#if os(Windows) && (arch(arm64) || arch(x86_64))
56
- let flags = dispatch_block_flags_t ( UInt32 ( flags. rawValue) )
56
+ let flags = dispatch_block_flags_t ( rawValue : UInt32 ( flags. rawValue) )
57
57
#else
58
58
let flags : dispatch_block_flags_t = numericCast ( flags. rawValue)
59
59
#endif
You can’t perform that action at this time.
0 commit comments