We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 491089a commit f1258a0Copy full SHA for f1258a0
Sources/RandomKit/Types/RandomGenerator/ThreadLocal.swift
@@ -73,6 +73,7 @@ private func _key(for type: Any.Type) -> pthread_key_t {
73
} else {
74
var key = pthread_key_t()
75
pthread_key_create(&key) {
76
+ // Cast required because argument is optional on some platforms (Linux) but not on others (macOS).
77
guard let rawPointer = ($0 as UnsafeMutableRawPointer?) else {
78
return
79
}
0 commit comments