Skip to content

Commit 6e768e0

Browse files
committed
WIndows: add an explicit cast
The constant value is imported as an unsigned value which means that we cannot or the values together. Add an explicit cast.
1 parent bbaf48a commit 6e768e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Windows/WinSDK.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ public let FIONBIO: Int32 = 0x4667e
4545
public let WS_OVERLAPPEDWINDOW: UINT =
4646
UINT(WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX)
4747
public let WS_POPUPWINDOW: UINT =
48-
UINT(WS_POPUP | WS_BORDER | WS_SYSMENU)
48+
UINT(Int32(WS_POPUP) | WS_BORDER | WS_SYSMENU)

0 commit comments

Comments
 (0)