Skip to content

Commit 4e9430c

Browse files
committed
SKSupport: update for BOOL conversion on Windows
We would fail to build on Windows due to the conversion of `BOOL` to `Bool`, and then comparing to `0`. This repairs the build on Windows.
1 parent 738a001 commit 4e9430c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SKSupport/dlopen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public final class DLHandle {
3131
public func close() throws {
3232
if let handle = rawValue {
3333
#if os(Windows)
34-
guard FreeLibrary(handle) != 0 else {
34+
guard FreeLibrary(handle) else {
3535
throw DLError.close("Failed to FreeLibrary: \(GetLastError())")
3636
}
3737
#else

0 commit comments

Comments
 (0)