Skip to content

Commit de2dd65

Browse files
authored
Attempt to work around swift typecheck crash (swiftlang#42)
1 parent 2e4619b commit de2dd65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SWBUtil/Library.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public enum Library: Sendable {
4343
#else
4444
let flags = RTLD_LAZY
4545
#endif
46-
guard let handle = path.withPlatformString({ dlopen($0, flags) }) else {
46+
guard let handle = path.withPlatformString({ (p: UnsafePointer<CChar>) in dlopen(p, flags) }) else {
4747
#if os(Android)
4848
throw LibraryOpenError(message: String(cString: dlerror()!))
4949
#else

0 commit comments

Comments
 (0)