# Sema: fix sus overflow behavior in RangeSetUnhandledIterator · gitcafe/zig

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

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

Visibility: public

Requested revision: f673c98a7cd18b552cb4959bc22d1794df34c7ab

Requested commit: f673c98a7cd18b552cb4959bc22d1794df34c7ab

Commit: f673c98a7cd18b552cb4959bc22d1794df34c7ab

Tree: 97ab5454dc30fdcf53b1338dc8386afb0a9cabef

Author: Jacob Young

Committer: Andrew Kelley

## Message

```
Sema: fix sus overflow behavior in RangeSetUnhandledIterator

The old code assumed that `intAddScalar` could return a value outside
of the range of `ty`, which is problematic for many reasons.

The new code (ab)uses the InternPool for speed.

```

## Parents

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

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