We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f62af2d commit 3cfd325Copy full SHA for 3cfd325
Darwin/Foundation-swiftoverlay/UUID.swift
@@ -77,7 +77,7 @@ public struct UUID : ReferenceConvertible, Hashable, Equatable, CustomStringConv
77
public var hashValue: Int {
78
return withUnsafePointer(to: uuid) {
79
$0.withMemoryRebound(to: UInt8.self, capacity: 16) {
80
- return Int(bitPattern: CFHashBytes($0, CFIndex(MemoryLayout<uuid_t>.size)))
+ return Int(bitPattern: CFHashBytes(UnsafeMutablePointer(mutating: $0), CFIndex(MemoryLayout<uuid_t>.size)))
81
}
82
83
0 commit comments