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

Don't assume JavaVMOption::optionString is signed/unsigned #419

Merged
merged 1 commit into from
Feb 16, 2023

Conversation

rib
Copy link
Contributor

@rib rib commented Feb 14, 2023

Depending on the compiler target the JavaVMOption::optionString may be *mut u8 or *mut i8.

For example, when compiling with aarch64-linux-android it is u8 and when compiling with x86_64-pc-windows-msvc it is i8

TODO: ideally we should incorporate an Android build into the CI, since that's a very likely use case for the jni crate. (luckily this isn't a big issue for Android because the invocation feature isn't really applicable to Android)

Depending on the compiler target the `JavaVMOption::optionString` may
be `*mut u8` or `*mut i8`.

For example, when compiling with `aarch64-linux-android` it is `u8`
and when compiling with `x86_64-pc-windows-msvc` it is `i8`
@rib rib merged commit 9e3b953 into jni-rs:master Feb 16, 2023
@rib rib mentioned this pull request Mar 8, 2023
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.

None yet

2 participants