mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
fix incorrect union const value generation
closes #1381 The union was generated as a 3 byte struct when it needed to be 4 bytes so that the packed struct bitcast could work correctly. Now it recognizes this situation and adds padding bytes to become the correct size so that it can fit into an array.
This commit is contained in:
parent
c4f96ea745
commit
dd1338b0e6
3 changed files with 34 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue