Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix libc::write argument type. #103

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

jetuk
Copy link
Contributor

@jetuk jetuk commented Sep 3, 2024

The argument type for libc::write is platform dependent. The fix converts to the platform specific type using TryInto. This fixes Windows builds.

Fixes #101.

@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-07-26"
Copy link
Member

Choose a reason for hiding this comment

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

Can you keep this as is?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, sorry I did not mean to include this change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

The argument type for libc::write is platform dependent. The
fix converts to the platform specific type using `TryInto`. This
fixes Windows builds.

Fixes pola-rs#101.
@jetuk jetuk force-pushed the fix-windows-libc-write-count-type branch from 557a883 to 2c53a52 Compare September 11, 2024 14:53
@ritchie46
Copy link
Member

Thanks!

@ritchie46 ritchie46 merged commit 632776a into pola-rs:main Sep 12, 2024
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

libc::write argument type error
2 participants