Skip to content

Commit a8f1225

Browse files
Fix operatingSystemVersion on WASI (#782)
The `operatingSystemVersion` property type is a tuple but the it was returning an `OperatingSystemVersion` instance on unknown platforms.
1 parent fb11420 commit a8f1225

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FoundationEssentials/ProcessInfo/ProcessInfo.swift

+1-1
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)