commit 14192019ffcce6a3c60c8e761ca4ccedc2f027b0 (tree)
parent 1abc904075ee37b059777869ab144854e4db0711
Author: Jacob Young <jacobly0@users.noreply.github.com>
Date: Sun, 7 Jul 2024 23:45:13 -0400
InternPool: fix dumping of simple types
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/InternPool.zig b/src/InternPool.zig
@@ -9362,8 +9362,8 @@ fn dumpAllFallible(ip: *const InternPool) anyerror!void {
switch (tag) {
.removed => {},
- .simple_type => try w.print("{s}", .{@tagName(@as(SimpleType, @enumFromInt(data)))}),
- .simple_value => try w.print("{s}", .{@tagName(@as(SimpleValue, @enumFromInt(data)))}),
+ .simple_type => try w.print("{s}", .{@tagName(@as(SimpleType, @enumFromInt(@intFromEnum(i))))}),
+ .simple_value => try w.print("{s}", .{@tagName(@as(SimpleValue, @enumFromInt(@intFromEnum(i))))}),
.type_int_signed,
.type_int_unsigned,