diff options
Diffstat (limited to 'src/InternPool.zig')
| -rw-r--r-- | src/InternPool.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig index 379a4f76c6..19be12c129 100644 --- a/src/InternPool.zig +++ b/src/InternPool.zig @@ -7985,7 +7985,8 @@ pub fn getTrailingAggregate( ) Allocator.Error!Index { try ip.items.ensureUnusedCapacity(gpa, 1); try ip.extra.ensureUnusedCapacity(gpa, @typeInfo(Bytes).Struct.fields.len); - const str: String = @enumFromInt(@intFromEnum(try getOrPutTrailingString(ip, gpa, len))); + + const str: String = @enumFromInt(ip.string_bytes.items.len - len); const adapter: KeyAdapter = .{ .intern_pool = ip }; const gop = try ip.map.getOrPutAdapted(gpa, Key{ .aggregate = .{ .ty = ty, |
