We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
test "@byteOffsetOf packed struct, fields cross byte boundary" { const P = packed struct { a: u9, b: u7, }; std.testing.expectEqual(0, @byteOffsetOf(P, "a")); std.testing.expectEqual(1, @byteOffsetOf(P, "b")); }
I reference this in my (failing) pull request #5713. What is the intended behavior?
This issue is linked to issue #5742 as they both come out of the same code section which is resolve_struct_type where the offsets are calculated.
resolve_struct_type
The text was updated successfully, but these errors were encountered:
Duplicate of #2627?
Sorry, something went wrong.
Yep totally a duplicate. I would still like to know whether this test should pass or if it is a bug.
Well I put in a pull request to fix the issue. It fixes byteOffset of. It's waiting to be reviewed and merged.
No branches or pull requests
I reference this in my (failing) pull request #5713. What is the intended behavior?
This issue is linked to issue #5742 as they both come out of the same code section which is
resolve_struct_type
where the offsets are calculated.The text was updated successfully, but these errors were encountered: