0
Fork 0
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:
Andrew Kelley 2018-09-11 12:57:53 -04:00
commit dd1338b0e6
No known key found for this signature in database
GPG key ID: 4E7CD66038A4D47C
3 changed files with 34 additions and 3 deletions