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
0.10.0-dev.4430+99c3578f
test { const T = extern struct{ i: u64 = 0, x: u16 = 0}; var x = T{}; //_ = @bitCast(u128, x); // error on stage2 _ = @bitCast(u80, x); // error on stage1 }
I'd expect the @bitCast to be with respect to the actual layout size of the struct, not the sum of the packed size of its fields.
@bitCast
Cast is allowed to u80, but not u128.
The text was updated successfully, but these errors were encountered:
Type: bitSizeOf non-packed structs should include padding
4c791f6
Closes ziglang#13214
f40bbc4
9179a96
2c847db
13897be
Enable bitcast test now that ziglang#13214 is resolved.
e6e31d3
606915d
40b7792
No branches or pull requests
Zig Version
0.10.0-dev.4430+99c3578f
Steps to Reproduce
Expected Behavior
I'd expect the
@bitCast
to be with respect to the actual layout size of the struct, not the sum of the packed size of its fields.Actual Behavior
Cast is allowed to u80, but not u128.
The text was updated successfully, but these errors were encountered: