Skip to content

Commit

Permalink
Fix a pointer addition bug in SwiftReflectionTest.
Browse files Browse the repository at this point in the history
  • Loading branch information
atrick committed Oct 16, 2020
1 parent 2767b51 commit 7554a6a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ internal struct ReflectionInfo : Sequence {
}

internal func sendBytes<T>(from address: UnsafePointer<T>, count: Int) {
var source = address
var source = UnsafeRawPointer(address)
var bytesLeft = count
debugLog("BEGIN \(#function)"); defer { debugLog("END \(#function)") }
while bytesLeft > 0 {
Expand Down

0 comments on commit 7554a6a

Please sign in to comment.