Skip to content

Commit 7554a6a

Browse files
committed
Fix a pointer addition bug in SwiftReflectionTest.
1 parent 2767b51 commit 7554a6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/private/SwiftReflectionTest/SwiftReflectionTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ internal struct ReflectionInfo : Sequence {
216216
}
217217

218218
internal func sendBytes<T>(from address: UnsafePointer<T>, count: Int) {
219-
var source = address
219+
var source = UnsafeRawPointer(address)
220220
var bytesLeft = count
221221
debugLog("BEGIN \(#function)"); defer { debugLog("END \(#function)") }
222222
while bytesLeft > 0 {

0 commit comments

Comments
 (0)