Skip to content

Commit 98c91cc

Browse files
committed
Sigh
1 parent 1864abd commit 98c91cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Testing/Support/FileHandle.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ let rootDirectoryPath: String = {
733733
// between the Windows directory and the _system_ Windows directory, see
734734
// https://devblogs.microsoft.com/oldnewthing/20140723-00/?p=423 .
735735
let count = withUnsafeTemporaryAllocation(of: wchar_t.self, capacity: 1) { buffer in
736-
GetSystemWindowsDirectoryW(buffer.baseAddress!, buffer.count)
736+
GetSystemWindowsDirectoryW(buffer.baseAddress!, UINT(buffer.count))
737737
}
738738
if count > 0 {
739739
withUnsafeTemporaryAllocation(of: wchar_t.self, capacity: Int(count) + 1) { buffer in

0 commit comments

Comments
 (0)