diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2024-07-07 23:45:13 -0400 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2024-07-07 23:45:33 -0400 |
| commit | 14192019ffcce6a3c60c8e761ca4ccedc2f027b0 (patch) | |
| tree | 142e4c25488431515eb834f8768128a9f6de7e70 /src/InternPool.zig | |
| parent | 1abc904075ee37b059777869ab144854e4db0711 (diff) | |
| download | zig-14192019ffcce6a3c60c8e761ca4ccedc2f027b0.tar.gz zig-14192019ffcce6a3c60c8e761ca4ccedc2f027b0.zip | |
InternPool: fix dumping of simple types
Diffstat (limited to 'src/InternPool.zig')
| -rw-r--r-- | src/InternPool.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig index 8d72c20e2e..c327172abf 100644 --- 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, |
