Skip to content

Commit 0ded41e

Browse files
authored
Merge pull request #2857 from millenomi/runloopsource-hash-crash
2 parents 68f9ab3 + 9ea7300 commit 0ded41e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Foundation/RunLoop.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ extension RunLoop {
323323
},
324324
hash: { (info) -> CFHashCode in
325325
let me = Unmanaged<_Source>.fromOpaque(info!).takeUnretainedValue()
326-
return CFHashCode(me.hashValue)
326+
return CFHashCode(bitPattern: me.hashValue)
327327
},
328328
schedule: { (info, cfRunLoop, cfRunLoopMode) in
329329
let me = Unmanaged<_Source>.fromOpaque(info!).takeUnretainedValue()

0 commit comments

Comments
 (0)