| ... | @@ -5075,8 +5075,8 @@ pub fn get(ip: *InternPool, gpa: Allocator, key: Key) Allocator.Error!Index { | ... | @@ -5075,8 +5075,8 @@ pub fn get(ip: *InternPool, gpa: Allocator, key: Key) Allocator.Error!Index { |
| 5075 | try ip.string_bytes.ensureUnusedCapacity(gpa, @as(usize, @intCast(len_including_sentinel + 1))); | 5075 | try ip.string_bytes.ensureUnusedCapacity(gpa, @as(usize, @intCast(len_including_sentinel + 1))); |
| 5076 | try ip.extra.ensureUnusedCapacity(gpa, @typeInfo(Bytes).Struct.fields.len); | 5076 | try ip.extra.ensureUnusedCapacity(gpa, @typeInfo(Bytes).Struct.fields.len); |
| 5077 | switch (aggregate.storage) { | 5077 | switch (aggregate.storage) { |
| 5078 | .bytes => |bytes| ip.string_bytes.appendSliceAssumeCapacity(bytes), | 5078 | .bytes => |bytes| ip.string_bytes.appendSliceAssumeCapacity(bytes[0..@intCast(len)]), |
| 5079 | .elems => |elems| for (elems) |elem| switch (ip.indexToKey(elem)) { | 5079 | .elems => |elems| for (elems[0..@intCast(len)]) |elem| switch (ip.indexToKey(elem)) { |
| 5080 | .undef => { | 5080 | .undef => { |
| 5081 | ip.string_bytes.shrinkRetainingCapacity(string_bytes_index); | 5081 | ip.string_bytes.shrinkRetainingCapacity(string_bytes_index); |
| 5082 | break :bytes; | 5082 | break :bytes; |