diff options
| author | Carl Åstholm <carl@astholm.se> | 2024-01-07 15:52:24 +0100 |
|---|---|---|
| committer | Carl Åstholm <carl@astholm.se> | 2024-01-07 16:21:08 +0100 |
| commit | c8fa767f083e610840cef688b709783c5ad66acc (patch) | |
| tree | 3b5e75ba381e722eb1e2c8cbc44d1df870b534dd /src/value.zig | |
| parent | a02bd81760166d679ccee0e190bf62115272ffbe (diff) | |
| download | zig-c8fa767f083e610840cef688b709783c5ad66acc.tar.gz zig-c8fa767f083e610840cef688b709783c5ad66acc.zip | |
Work around stage1 not yet returning null-terminated `@typeInfo` strings
These changes can be reverted the next time stage1 is updated.
Diffstat (limited to 'src/value.zig')
| -rw-r--r-- | src/value.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/value.zig b/src/value.zig index 45f603ed2d..896ca108a7 100644 --- a/src/value.zig +++ b/src/value.zig @@ -4050,7 +4050,7 @@ pub const Value = struct { const tags = @typeInfo(Tag).Enum.fields; var fields: [tags.len]std.builtin.Type.StructField = undefined; for (&fields, tags) |*field, t| field.* = .{ - .name = t.name, + .name = t.name ++ "", .type = *@field(Tag, t.name).Type(), .default_value = null, .is_comptime = false, |
