motiejus/zig

fork of https://codeberg.org/ziglang/zig
git clone https://git.jakstys.lt/motiejus/zig.git
Log | Tree | Refs | README | LICENSE

commit ec8f0777f23e4585b927c8d95994947b2b263051 (tree)
parent e187ac09cbc23fedef40014f520b2e905033746b
Author: Tadeo Kondrak <me@tadeo.ca>
Date:   Tue, 29 Sep 2020 10:37:24 -0600

Update std.meta.Tuple for alignment in StructField/UnionField

Diffstat:
Mlib/std/meta.zig | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/lib/std/meta.zig b/lib/std/meta.zig @@ -884,6 +884,7 @@ pub fn Tuple(comptime types: []const type) type { .field_type = T, .default_value = @as(?T, null), .is_comptime = false, + .alignment = @alignOf(T), }; }