Skip to content

Commit 93a22f1

Browse files
authored
Merge pull request #4071 from atrick/buffer-mutability
2 parents e40dcfd + 3bdf6c4 commit 93a22f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/ContiguousArrayBuffer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ final class _ContiguousArrayStorage<Element> : _ContiguousArrayStorage1 {
115115
) rethrows {
116116
if _isBridgedVerbatimToObjectiveC(Element.self) {
117117
let count = __manager.header.count
118-
let elements = UnsafeMutableRawPointer(__manager._elementPointer)
118+
let elements = UnsafeRawPointer(__manager._elementPointer)
119119
.assumingMemoryBound(to: AnyObject.self)
120120
defer { _fixLifetime(__manager) }
121121
try body(UnsafeBufferPointer(start: elements, count: count))

0 commit comments

Comments
 (0)