-
Notifications
You must be signed in to change notification settings - Fork 717
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
Bitfields broken for big-endian machines. #1340
Comments
Per: https://en.wikipedia.org/wiki/Bit_numbering SPARC uses "LSB 0" bit numbering (the same as Little-endian CPUs). So the proposed change is probably not needed. But something else is wrong... I'm confused about: /~https://github.com/rust-lang-nursery/rust-bindgen/blob/master/bindgen-integration/src/lib.rs#L223
What does mean value 3? This is 2 bytes row! |
The bitfield has three named fields: |
With following all test passes on both sparc and intel: (though I haven't verified Firefox yet) |
Fix bitfields on big-endian machines. Fixes #1340
See https://bugzilla.mozilla.org/show_bug.cgi?id=1462623
The text was updated successfully, but these errors were encountered: