Skip to content

Commit 1b8c399

Browse files
kateinoigakukunMaxDesiatov
authored andcommitted
Fix operatingSystemVersion on WASI (#782)
The `operatingSystemVersion` property type is a tuple but the it was returning an `OperatingSystemVersion` instance on unknown platforms. (cherry picked from commit a8f1225)
1 parent 9c6d53c commit 1b8c399

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FoundationEssentials/ProcessInfo/ProcessInfo.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ extension _ProcessInfo {
389389
patch: Int(osVersionInfo.dwBuildNumber)
390390
)
391391
#else
392-
return OperatingSystemVersion(majorVersion: -1, minorVersion: 0, patchVersion: 0)
392+
return (major: -1, minor: 0, patch: 0)
393393
#endif
394394
}
395395

0 commit comments

Comments
 (0)