Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Fix alignment of some unions #31

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

rpjohnst
Copy link

Some of the unions in the FFI, represented as type union_unnamed = c_void, have bad alignment because C uses the alignment of the largest member. This is pretty much a hack, but it makes it work in a few more cases.

Review on Reviewable

@jdm
Copy link
Member

jdm commented Apr 5, 2015

@rpjohnst Any opinion on #31 (comment) ?

@rpjohnst
Copy link
Author

rpjohnst commented Apr 5, 2015

Yes, that would make more sense. I've pushed an update but it's not showing up here for some reason...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants