Skip to content

Commit d0e53b5

Browse files
committed
missing hunk from 24f49a2
Signed-off-by: Daniel A. Steffen <[email protected]>
1 parent ae657d7 commit d0e53b5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/swift/Data.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,7 @@ public struct DispatchData : RandomAccessCollection {
196196

197197
guard !copyRange.isEmpty else { return 0 }
198198

199-
let bufferCapacity = buffer.count * sizeof(DestinationType.self)
200-
buffer.baseAddress?.withMemoryRebound(to: UInt8.self, capacity: bufferCapacity) {
201-
_copyBytesHelper(to: $0, from: copyRange)
202-
}
199+
_copyBytesHelper(to: buffer.baseAddress!, from: copyRange)
203200
return copyRange.count
204201
}
205202

0 commit comments

Comments
 (0)