Fix compilation with Xcode 9 in compatibilty mode

This commit is contained in:
David Hart authored and Gwendal Roué committed 2017-06-09 06:44:26 +02:00
1 parent fe702d8fea
commit 22dc01610e
1 file changed
+1 -1
+1 -1
View File
@@ -7,7 +7,7 @@ extension NSUUID : DatabaseValueConvertible {
public var databaseValue: DatabaseValue {
var uuidBytes = ContiguousArray(repeating: UInt8(0), count: 16)
return uuidBytes.withUnsafeMutableBufferPointer { buffer in
getBytes(buffer.baseAddress)
getBytes(buffer.baseAddress!)
return NSData(bytes: buffer.baseAddress, length: 16).databaseValue
}
}