We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bc6797 commit aff254cCopy full SHA for aff254c
stdlib/public/core/ShadowProtocols.swift
@@ -51,7 +51,7 @@ extension _NSFastEnumeration {
51
let bufferCapacity = MemoryLayout<Storage>.size
52
/ MemoryLayout<X>.stride
53
54
- try withUnsafePointer(to: &bufferStorage) { p in
+ try withUnsafeMutablePointer(to: &bufferStorage) { p in
55
try p.withMemoryRebound(
56
to: AnyObject.self, capacity: bufferCapacity
57
) { buffer in
0 commit comments