mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] Drop needless unsafeBitCast
Swift SVN r23191
This commit is contained in:
@@ -252,7 +252,7 @@ extension _ArrayBuffer {
|
||||
location:subRange.startIndex,
|
||||
length: subRange.endIndex - subRange.startIndex)
|
||||
|
||||
let buffer = unsafeBitCast(target, UnsafeMutablePointer<AnyObject>.self)
|
||||
let buffer = UnsafeMutablePointer<AnyObject>(target)
|
||||
|
||||
// Copies the references out of the NSArray without retaining them
|
||||
nonNative.getObjects(buffer, range: nsSubRange)
|
||||
|
||||
Reference in New Issue
Block a user