aboutsummaryrefslogtreecommitdiff
path: root/src/InternPool.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2022-12-18 19:33:15 +0200
committerGitHub <noreply@github.com>2022-12-18 19:33:15 +0200
commit40ed6ae8469fd599f0524d294f38365c3bb8a825 (patch)
tree6e37bbb58fef1ca3aae06e65e179dfa017cb7929 /src/InternPool.zig
parente9e804edc899d8392c9f93a19b92be603c26df79 (diff)
parent2a5e1426aa9469fadb78e837d0100d689213b034 (diff)
downloadzig-40ed6ae8469fd599f0524d294f38365c3bb8a825.tar.gz
zig-40ed6ae8469fd599f0524d294f38365c3bb8a825.zip
Merge pull request #13930 from r00ster91/renamings
std.builtin: renamings
Diffstat (limited to 'src/InternPool.zig')
-rw-r--r--src/InternPool.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig
index 5e50780315..74155ca657 100644
--- a/src/InternPool.zig
+++ b/src/InternPool.zig
@@ -259,7 +259,7 @@ fn addExtraAssumeCapacity(ip: *InternPool, extra: anytype) u32 {
const fields = std.meta.fields(@TypeOf(extra));
const result = @intCast(u32, ip.extra.items.len);
inline for (fields) |field| {
- ip.extra.appendAssumeCapacity(switch (field.field_type) {
+ ip.extra.appendAssumeCapacity(switch (field.type) {
u32 => @field(extra, field.name),
Index => @enumToInt(@field(extra, field.name)),
i32 => @bitCast(u32, @field(extra, field.name)),
@@ -274,7 +274,7 @@ fn extraData(ip: InternPool, comptime T: type, index: usize) T {
var i: usize = index;
var result: T = undefined;
inline for (fields) |field| {
- @field(result, field.name) = switch (field.field_type) {
+ @field(result, field.name) = switch (field.type) {
u32 => ip.extra.items[i],
Index => @intToEnum(Index, ip.extra.items[i]),
i32 => @bitCast(i32, ip.extra.items[i]),