mirror of
https://github.com/apple/swift-collections
synced 2026-11-28 05:04:21 +00:00
[DequeModule] UniqueDeque.replace(removing:addingCount:initializingWith:): Fix sizing issue
This commit is contained in:
2 files changed
+25
-1
No files matched your search
@@ -85,7 +85,7 @@ extension UniqueDeque where Element: ~Copyable {
|
||||
_ensureFreeCapacity(newItemCount - subrange.count)
|
||||
try _storage._handle.uncheckedReplace(
|
||||
removing: subrange,
|
||||
addingCount: capacity,
|
||||
addingCount: newItemCount,
|
||||
initializingWith: initializer)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user