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

examples: Use c_char for pointer to raw string #521

Merged
merged 1 commit into from
Dec 21, 2021
Merged

Conversation

MarijnS95
Copy link
Collaborator

@MarijnS95 MarijnS95 commented Dec 21, 2021

On platforms like Android strings use u8 as character-type instead of i8 - using the appropriate c_char type hides this discrepancy and allows the examples to compile for all platforms.


Closes #315 (EDIT: GH can only link and close issues this way, not other PRs)

Opening a separate PR because that one hasn't moved for 1.5 years, even after repeated asking to replace the s/i8/u8 (which obviously breaks all other platforms) with c_char.

On platforms like Android strings use `u8` as character-type instead of
`i8` - using the appropriate `c_char` type hides this discrepancy and
allows the examples to compile for all platforms.
@Ralith Ralith merged commit 90960ef into master Dec 21, 2021
@Ralith Ralith deleted the examples-c_char branch December 21, 2021 19:42
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