Skip to content

Commit 9bc1a18

Browse files
authored
Merge pull request #4615 from apple/compnerd/int32
Foundation: explicitly cast value on Windows for 32-bits
2 parents 574b0ec + dd893fc commit 9bc1a18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Foundation/NSError.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1316,7 +1316,7 @@ extension POSIXError {
13161316
/// Operation canceled.
13171317
public static var ECANCELED: POSIXError.Code {
13181318
#if os(Windows)
1319-
return POSIXError.Code(rawValue: ERROR_CANCELLED)!
1319+
return POSIXError.Code(rawValue: Int32(ERROR_CANCELLED))!
13201320
#else
13211321
return .ECANCELED
13221322
#endif

0 commit comments

Comments
 (0)