mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
Fix compilation with Xcode 9 in compatibilty mode
This commit is contained in:
1 parent
fe702d8fea
commit
22dc01610e
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user