[stdlib] Drop needless unsafeBitCast

Swift SVN r23191
This commit is contained in:
Dave Abrahams
2014-11-09 04:53:34 +00:00
parent 2c48f57c30
commit c20389583c

View File

@@ -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)