diff --git a/src/AstGen.zig b/src/AstGen.zig index 6149169c7f..61174367c3 100644 --- a/src/AstGen.zig +++ b/src/AstGen.zig @@ -1857,7 +1857,7 @@ fn containerDecl( field_index += 1; } - const empty_slot_count = 16 - ((field_index - 1) % 16); + const empty_slot_count = 16 - (field_index % 16); cur_bit_bag >>= @intCast(u5, empty_slot_count * 2); const result = try gz.addPlNode(tag, node, zir.Inst.StructDecl{