Commit a0fc878
committed
swift: repair the Windows x86 build
For some reason `numericCast` does not permit casting the flags value:
~~~
S:\SourceCache\swift-corelibs-libdispatch\src\swift\Block.swift:46:39: error: global function 'numericCast' requires that 'dispatch_block_flags_t' conform to 'BinaryInteger'
let flags: dispatch_block_flags_t = numericCast(flags.rawValue)
^
Swift.numericCast:1:24: note: where 'U' = 'dispatch_block_flags_t'
@inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
^
S:\SourceCache\swift-corelibs-libdispatch\src\swift\Block.swift:46:39: note: did you mean to use '.rawValue'?
let flags: dispatch_block_flags_t = numericCast(flags.rawValue)
^
.rawValue
~~~1 parent 87ba473 commit a0fc878
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
44 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
| |||
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
55 | | - | |
| 59 | + | |
| 60 | + | |
56 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
57 | 65 | | |
58 | 66 | | |
59 | 67 | | |
| |||
0 commit comments