Remove references to ManagedBuffer.capacity and use the given minCapacity

Fix errors

Update Deque._UnsafeHandle.swift
This commit is contained in:
Alejandro Alonso committed 2026-08-12 14:09:05 -07:00
1 parent 2dae6db88f
commit d6c0fe063e
3 files changed
+10 -26

No files matched your search

@@ -85,12 +85,8 @@ extension _HashNode.Storage {
let mincap = (bytes &+ childStride &- 1) / childStride
let object = _HashNode.Storage.create(
minimumCapacity: mincap
) { buffer in
#if os(OpenBSD)
) { _ in
_HashNodeHeader(byteCapacity: mincap * childStride)
#else
_HashNodeHeader(byteCapacity: buffer.capacity * childStride)
#endif
}
object.withUnsafeMutablePointers { header, elements in