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 type usage to use the real C types wherever applicable #592

Merged
merged 2 commits into from
Feb 19, 2024
Merged

Conversation

filmor
Copy link
Member

@filmor filmor commented Feb 14, 2024

Probably because Rust always expresses strings as [u8], all const char* parameters in the NIF API were translated as u8 or uchar. The correct type for these is std::ffi::c_char which is particularly relevant on systems that use a signed char type by default (see #584).

@filmor filmor merged commit 2ae8765 into master Feb 19, 2024
34 checks passed
@filmor filmor deleted the fix-types branch February 19, 2024 17:32
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.

2 participants