Skip to content

Commit 6c64285

Browse files
committed
stdlib: better type for WinSDK constant
Alter the constant type for the FileOperationFlag type. This allows the type system check the paramter type better.
1 parent 09c15c3 commit 6c64285

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/Windows/WinSDK.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ public let TRUE: BOOL = 1
3434
public let INVALID_HANDLE_VALUE: HANDLE = HANDLE(bitPattern: -1)!
3535

3636
// shellapi.h
37-
public let FOF_NO_UI: DWORD =
38-
DWORD(FOF_SILENT | FOF_NOCONFIRMATION | FOF_NOERRORUI | FOF_NOCONFIRMMKDIR)
37+
public let FOF_NO_UI: FILEOP_FLAGS =
38+
FILEOP_FLAGS(FOF_SILENT | FOF_NOCONFIRMATION | FOF_NOERRORUI | FOF_NOCONFIRMMKDIR)
3939

0 commit comments

Comments
 (0)