Skip to content

Commit 3648d13

Browse files
authored
Merge pull request swiftlang#2047 from jmittert/FixFileHandle
2 parents 98c3925 + e4e9bf4 commit 3648d13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/FileHandle.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ open class FileHandle : NSObject, NSSecureCoding {
445445

446446
internal convenience init?(fileSystemRepresentation: UnsafePointer<Int8>, flags: Int32, createMode: Int) {
447447
#if os(Windows)
448-
var fd: Int = -1
448+
var fd: Int32 = -1
449449
if let path = String(cString: fileSystemRepresentation).cString(using: .utf16) {
450450
fd = _CFOpenFileWithMode(path, flags, mode_t(createMode))
451451
}

0 commit comments

Comments
 (0)