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

Incorrect size for :size_t on JRuby / WIndows x64 #1307

Closed
bnagy opened this issue Dec 6, 2013 · 1 comment
Closed

Incorrect size for :size_t on JRuby / WIndows x64 #1307

bnagy opened this issue Dec 6, 2013 · 1 comment
Milestone

Comments

@bnagy
Copy link

bnagy commented Dec 6, 2013

irb(main):001:0> RUBY_DESCRIPTION
=> "jruby 1.7.8 (1.9.3p392) 2013-11-14 0ce429e on Java HotSpot(TM) 64-Bit Server VM 1.8.0-ea-b82 +indy [Windows 7-amd64]"
irb(main):003:0> FFI::TypeDefs[:size_t]
=> #<FFI::Type::Builtin:UINT size=4 alignment=4>
irb(main):004:0> FFI::Platform::NAME
=> "x86_64-windows"

According to all the code I can see it should be ulong_long?

@larskanis
Copy link

This was reported for the ffi gem before. On MRI the result is correctly:

=> #<FFI::Type::Builtin:UINT64 size=8 alignment=8>

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

No branches or pull requests

3 participants