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.1919+5da0e0355
Array assignment sometimes doesn't happen.
const std = @import("std"); const Memory = packed struct { mouse: u48, // try changing this to u32 framebuffer: [4]u8, }; var m: Memory = undefined; pub fn main() void { m.framebuffer[0] = 13; std.debug.print("{}", .{m}); }
Memory{ .mouse = 13, .framebuffer = { 13, 0, 0, 0 } }
Memory{ .mouse = 13, .framebuffer = { 0, 0, 0, 0 } }
The text was updated successfully, but these errors were encountered:
Related: #10185
Sorry, something went wrong.
Arrays are no longer allowed in packed structs.
No branches or pull requests
Zig Version
0.10.0-dev.1919+5da0e0355
Steps to Reproduce
Array assignment sometimes doesn't happen.
Expected Behavior
Actual Behavior
The text was updated successfully, but these errors were encountered: