Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions stdlib/public/Concurrency/Executor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -812,8 +812,8 @@ public struct UnownedSerialExecutor: Sendable {
// any SerialExecutor needs a raw witness table pointer, so mask off the low
// bits, knowing the witness table pointer is aligned to the pointer size.
let rawExecutorData = unsafe unsafeBitCast(executor, to: (UInt, UInt).self)
let mask = ~(UInt(MemoryLayout<UnsafeRawPointer>.alignment) - 1)
let alignedExecutor = unsafe (rawExecutorData.0, rawExecutorData.1 & mask)
let mask = unsafe ~(UInt(MemoryLayout<UnsafeRawPointer>.alignment) - 1)
let alignedExecutor = (rawExecutorData.0, rawExecutorData.1 & mask)
return unsafe unsafeBitCast(alignedExecutor, to: (any SerialExecutor)?.self)
}
}
Expand Down
8 changes: 4 additions & 4 deletions stdlib/public/core/FloatingPointToString.swift
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public func _float16ToStringImpl(
_unchecked: textBuffer,
count: Int(bufferLength))
for i in 0..<Int(bufferLength) {
buffer[unchecked: i] = 0x30
unsafe buffer[unchecked: i] = 0x30
}
let textRange = _Float16ToASCII(value: value, buffer: &buffer)
let textLength = textRange.upperBound - textRange.lowerBound
Expand Down Expand Up @@ -450,7 +450,7 @@ internal func _float32ToStringImpl(
_unchecked: textBuffer,
count: Int(bufferLength))
for i in 0..<Int(bufferLength) {
buffer[unchecked: i] = 0x30
unsafe buffer[unchecked: i] = 0x30
}
let textRange = _Float32ToASCII(value: value, buffer: &buffer)
let textLength = textRange.upperBound - textRange.lowerBound
Expand Down Expand Up @@ -701,7 +701,7 @@ internal func _float64ToStringImpl(
_unchecked: textBuffer,
count: Int(bufferLength))
for i in 0..<Int(bufferLength) {
buffer[unchecked: i] = 0x30
unsafe buffer[unchecked: i] = 0x30
}
let textRange = _Float64ToASCII(value: value, buffer: &buffer)
let textLength = textRange.upperBound - textRange.lowerBound
Expand Down Expand Up @@ -1207,7 +1207,7 @@ internal func _float80ToStringImpl(
_unchecked: textBuffer,
count: Int(bufferLength))
for i in 0..<Int(bufferLength) {
buffer[unchecked: i] = 0x30
unsafe buffer[unchecked: i] = 0x30
}
let textRange = _Float80ToASCII(value: value, buffer: &buffer)
let textLength = textRange.upperBound - textRange.lowerBound
Expand Down