Skip to content

Commit 3cfd325

Browse files
authored
mutable pointer fix
1 parent f62af2d commit 3cfd325

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Darwin/Foundation-swiftoverlay/UUID.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public struct UUID : ReferenceConvertible, Hashable, Equatable, CustomStringConv
7777
public var hashValue: Int {
7878
return withUnsafePointer(to: uuid) {
7979
$0.withMemoryRebound(to: UInt8.self, capacity: 16) {
80-
return Int(bitPattern: CFHashBytes($0, CFIndex(MemoryLayout<uuid_t>.size)))
80+
return Int(bitPattern: CFHashBytes(UnsafeMutablePointer(mutating: $0), CFIndex(MemoryLayout<uuid_t>.size)))
8181
}
8282
}
8383
}

0 commit comments

Comments
 (0)