Commit 14192019ff

Jacob Young <jacobly0@users.noreply.github.com>
2024-07-08 05:45:13
InternPool: fix dumping of simple types
1 parent 1abc904
Changed files (1)
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,