-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
Incorrect address for unsigned integers with ffi #1315
Milestone
Comments
For reference the issue on ffi gem: ffi/ffi#313 |
Still happening as of 9.0.5.0. |
I'm not sure this can be fixed on 64bit systems. Since Java doesn't have unsigned integer types, I think we'd have to change the API to return a BigInteger to get |
@tduehr Any update? |
Looks like it's dead, just cleaning up my queue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems that when using JRuby and ffi it returns an incorrect value for the address of an unsigned integer:
This came up when trying to define INVALID_HANDLE_VALUE on Windows which internally is defined using a cast:
I realize JRuby isn't big on addresses in general, but here I think we can simulate casting a negative int here to match C's behavior.
Originally reported on the ffi project, but was told to report it here.
The text was updated successfully, but these errors were encountered: