Skip to content

Commit e9c84b5

Browse files
committed
don't bridge array in replaceObjectsInRange
1 parent 46fd0c7 commit e9c84b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/NSArray.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ public class NSMutableArray : NSArray {
673673
}
674674
}
675675
public func replaceObjectsInRange(range: NSRange, withObjectsFromArray otherArray: [AnyObject], range otherRange: NSRange) {
676-
replaceObjectsInRange(range, withObjectsFromArray: otherArray.bridge().subarrayWithRange(otherRange))
676+
replaceObjectsInRange(range, withObjectsFromArray: Array(otherArray[otherRange.toRange()!]))
677677
}
678678

679679
public func replaceObjectsInRange(range: NSRange, withObjectsFromArray otherArray: [AnyObject]) {

0 commit comments

Comments
 (0)