| author | |
| committer | |
| log | ccdba774c84e2b3c7f650e27f430c9a3eed78fd3 |
| tree | 5991dfbd6ebcfedfb403bdb414ad0571873a74b7 |
| parent | 015599d1ef1606e56c49118800a4c7ef36c038e6 |
off by one error in the bits that describe defaults/field alignments
as soon as we have tests for struct field alignment and default values,
there will be coverage for this.1 files changed, 1 insertions(+), 1 deletions(-)
src/AstGen.zig+1-1| ... | ... | @@ -1857,7 +1857,7 @@ fn containerDecl( |
| 1857 | 1857 | |
| 1858 | 1858 | field_index += 1; |
| 1859 | 1859 | } |
| 1860 | const empty_slot_count = 16 - ((field_index - 1) % 16); | |
| 1860 | const empty_slot_count = 16 - (field_index % 16); | |
| 1861 | 1861 | cur_bit_bag >>= @intCast(u5, empty_slot_count * 2); |
| 1862 | 1862 | |
| 1863 | 1863 | const result = try gz.addPlNode(tag, node, zir.Inst.StructDecl{ |