-
Notifications
You must be signed in to change notification settings - Fork 91
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
"wrong argument size" for uint16 arguments #191
Comments
Okay, #212 reproduces the bug. To clarify, it seems to be an So I'm pretty sure I've found the bug. If there are return values then the arguments structure is padded to max alignment before the first return value. Line 102 in 1d235fb
And in Fix should be simple, but I'm wondering about how to create a test suite that would more thoroughly test these issues, because #195 seems to be another instance. |
This fixes a bug in argument size calculation in the case where the function has no return values. Previously it was padding the argument struct to max alignment, but this only happens if there are return values following. Updates #191
I believe this is fixed, with an extensive test added in #216. Tagged release v0.3.1. |
This snippet will cause compilation errors:
foo: wrong argument size 8; expected $...-2
The text was updated successfully, but these errors were encountered: