Skip to content

Commit f607cd9

Browse files
committed
Fix two other unsafe markers
1 parent 655c5ff commit f607cd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/Concurrency/Executor.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,8 +812,8 @@ public struct UnownedSerialExecutor: Sendable {
812812
// any SerialExecutor needs a raw witness table pointer, so mask off the low
813813
// bits, knowing the witness table pointer is aligned to the pointer size.
814814
let rawExecutorData = unsafe unsafeBitCast(executor, to: (UInt, UInt).self)
815-
let mask = ~(UInt(MemoryLayout<UnsafeRawPointer>.alignment) - 1)
816-
let alignedExecutor = unsafe (rawExecutorData.0, rawExecutorData.1 & mask)
815+
let mask = unsafe ~(UInt(MemoryLayout<UnsafeRawPointer>.alignment) - 1)
816+
let alignedExecutor = (rawExecutorData.0, rawExecutorData.1 & mask)
817817
return unsafe unsafeBitCast(alignedExecutor, to: (any SerialExecutor)?.self)
818818
}
819819
}

0 commit comments

Comments
 (0)