Skip to content

Commit 01e0903

Browse files
committed
baseAddress is optional.
1 parent 4aa0f46 commit 01e0903

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/stdlib/TestUUID.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class TestUUID : TestUUIDSuper {
7474
let valFromRef = ref as UUID
7575
var bytes: [UInt8] = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
7676
let valFromBytes = bytes.withUnsafeMutableBufferPointer { buffer -> UUID in
77-
ref.getBytes(buffer.baseAddress)
77+
ref.getBytes(buffer.baseAddress!)
7878
return UUID(uuid: UnsafeRawPointer(buffer.baseAddress!).load(as: uuid_t.self))
7979
}
8080
let valFromStr = UUID(uuidString: ref.uuidString)

0 commit comments

Comments
 (0)