Skip to content

Commit aff254c

Browse files
committed
fixup function from rebase
1 parent 8bc6797 commit aff254c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/ShadowProtocols.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ extension _NSFastEnumeration {
5151
let bufferCapacity = MemoryLayout<Storage>.size
5252
/ MemoryLayout<X>.stride
5353

54-
try withUnsafePointer(to: &bufferStorage) { p in
54+
try withUnsafeMutablePointer(to: &bufferStorage) { p in
5555
try p.withMemoryRebound(
5656
to: AnyObject.self, capacity: bufferCapacity
5757
) { buffer in

0 commit comments

Comments
 (0)