mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 13:30:45 +00:00
Update std.meta.Tuple for alignment in StructField/UnionField
This commit is contained in:
parent
e187ac09cb
commit
ec8f0777f2
@ -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),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user