Skip to content

Commit e41ae93

Browse files
authored
Merge pull request #28829 from Catfish-Man/ducking-types-5.2
2 parents 7ff6b97 + b6308a5 commit e41ae93

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

stdlib/public/core/SetBridging.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ internal func _stdlib_NSSet_allObjects(_ object: AnyObject) -> _BridgingBuffer {
2020
let nss = unsafeBitCast(object, to: _NSSet.self)
2121
let count = nss.count
2222
let storage = _BridgingBuffer(count)
23-
nss.getObjects(storage.baseAddress, count: count)
23+
nss.getObjects(storage.baseAddress)
2424
return storage
2525
}
2626

stdlib/public/core/ShadowProtocols.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ internal protocol _NSSet: _NSSetCore {
175175
_ buffer: UnsafeMutablePointer<AnyObject>,
176176
count: Int
177177
)
178+
179+
@objc(getObjects:) func getObjects(
180+
_ buffer: UnsafeMutablePointer<AnyObject>
181+
)
178182
}
179183

180184
/// A shadow for the API of NSNumber we will use in the core

0 commit comments

Comments
 (0)