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

Make jboolean an alias for bool instead of u8 #23

Merged
merged 1 commit into from
Aug 31, 2023

Commits on Jun 21, 2023

  1. Make jboolean an alias for bool instead of u8

    JNI only strictly defines two valid values for a `jboolean`
    and there's no consensus on whether other values greater than one will
    be interpreted as TRUE in all situations.
    
    The safest interpretation is to say that it will lead to undefined
    behaviour to pass any value besides zero or one as a `jboolean`.
    
    Addresses jni-rs/jni-rs#400
    Closes #19
    rib committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    b478617 View commit details
    Browse the repository at this point in the history