Skip to content

Commit c9c5253

Browse files
committed
[stdlib] fix getting eager-lazy-bridged buffer
1 parent bc3a162 commit c9c5253

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

stdlib/public/core/ArrayBuffer.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -586,9 +586,8 @@ extension _ArrayBuffer {
586586
_storage.objCInstance,
587587
_ArrayBuffer.associationKey
588588
) {
589-
let buffer = assocPtr.load(
590-
as: _ContiguousArrayStorage<Element>.self
591-
)
589+
let buffer: _ContiguousArrayStorage<Element>
590+
buffer = Unmanaged.fromOpaque(assocPtr).takeUnretainedValue()
592591
return _ContiguousArrayBuffer(buffer)
593592
}
594593
return nil

0 commit comments

Comments
 (0)