# InternPool: fix crash in \`rehashTrackedInsts\` · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/135c733eefa8cd43e84e7b39aa292359c680fe1e)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 135c733eefa8cd43e84e7b39aa292359c680fe1e

Requested commit: 135c733eefa8cd43e84e7b39aa292359c680fe1e

Commit: 135c733eefa8cd43e84e7b39aa292359c680fe1e

Tree: 47799969392c951b83cbdc683337a64353fd8a5f

Author: mlugg

Committer: mlugg

## Message

```
InternPool: fix crash in `rehashTrackedInsts`

When a shard has zero elements, we don't need to reserve any capacity.

```

## Parents

- [bd0ace5c4e898d7b7370e0704b08c62f0b6020c5](https://git.cafe/gitcafe/zig/commit/bd0ace5c4e898d7b7370e0704b08c62f0b6020c5?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/135c733eefa8cd43e84e7b39aa292359c680fe1e?format=markdown)
