Skip to content

Commit 5318033

Browse files
authored
Missing cast to DWORD on Windows. (#375)
This PR fixes a missing cast to `DWORD` on Windows that is causing the Windows build to fail. (Oops!) ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent f954b76 commit 5318033

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Testing/Support/Additions/CommandLineAdditions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ extension CommandLine {
5757
throw Win32Error(rawValue: GetLastError())
5858
}
5959
guard let path = String.decodeCString(buffer.baseAddress!, as: UTF16.self)?.result else {
60-
throw Win32Error(rawValue: ERROR_ILLEGAL_CHARACTER)
60+
throw Win32Error(rawValue: DWORD(ERROR_ILLEGAL_CHARACTER))
6161
}
6262
return path
6363
}

0 commit comments

Comments
 (0)