Skip to content

Conversation

@fabianfett
Copy link
Member

Very much like #3361. Just for writing.

Result: NIOPosix compiles on Windows.

@fabianfett fabianfett requested a review from Lukasa August 29, 2025 13:19
@fabianfett fabianfett added the 🔨 semver/patch No public API change. label Aug 29, 2025
case .processed(let n):
assert(n >= 0, "write claims to have written a negative number of bytes \(n)")
return n
return numericCast(n)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this always Int?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sadly it isn't. On Windows ssize_t is Int64.

@fabianfett fabianfett merged commit e95d742 into apple:main Sep 1, 2025
53 of 54 checks passed
@fabianfett fabianfett deleted the ff-windows-pwrite branch September 1, 2025 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants