Skip to content

Commit 7980e6c

Browse files
committed
Further linux build refinements
1 parent a365e75 commit 7980e6c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Foundation/Data.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ public struct Data : ReferenceConvertible, CustomStringConvertible, Equatable, H
270270
///
271271
/// - parameter reference: The instance of `NSData` that you wish to wrap. This instance will be copied by `struct Data`.
272272
public init(referencing reference: NSData) {
273-
_wrapped = _SwiftNSData(immutableObject: reference.copy() as AnyObject)
273+
_wrapped = _SwiftNSData(immutableObject: reference.copy() as! AnyObject)
274274
}
275275

276276
// -----------------------------------

Foundation/NSData.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ open class NSData : NSObject, NSCopying, NSMutableCopying, NSSecureCoding {
233233
return false
234234
}
235235

236-
return other.withUnsafeBytes { (bytes2: UnsafePointer<Void>) -> Bool in
236+
return other.withUnsafeBytes { (bytes2: UnsafePointer<UInt8>) -> Bool in
237237
let bytes1 = bytes
238238
return memcmp(bytes1, bytes2, length) == 0
239239
}

0 commit comments

Comments
 (0)