Skip to content

Commit 3c41fb2

Browse files
authored
Merge pull request #1816 from amorde/nsorderedset-revisited
2 parents 4b34eb5 + 582acb6 commit 3c41fb2

File tree

3 files changed

+266
-124
lines changed

3 files changed

+266
-124
lines changed

Foundation/NSArray.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ open class NSMutableArray : NSArray {
816816

817817
open func exchangeObject(at idx1: Int, withObjectAt idx2: Int) {
818818
if type(of: self) === NSMutableArray.self {
819-
swap(&_storage[idx1], &_storage[idx2])
819+
_storage.swapAt(idx1, idx2)
820820
} else {
821821
NSUnimplemented()
822822
}

0 commit comments

Comments
 (0)