From 22dc01610edd532b1ce330168a30ecd25a6eaac2 Mon Sep 17 00:00:00 2001 From: David Hart Date: Tue, 6 Jun 2017 10:02:41 -0700 Subject: [PATCH] Fix compilation with Xcode 9 in compatibilty mode --- GRDB/Core/Support/Foundation/UUID.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GRDB/Core/Support/Foundation/UUID.swift b/GRDB/Core/Support/Foundation/UUID.swift index 25d3d3007..5d6d7cfee 100644 --- a/GRDB/Core/Support/Foundation/UUID.swift +++ b/GRDB/Core/Support/Foundation/UUID.swift @@ -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 } }