# Do not invoke UB in BigInt shr operations · gitcafe/zig

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

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

Visibility: public

Requested revision: 9ec4ccc68f6473ce4f02fc5d2b87ad92e2eb555a

Requested commit: 9ec4ccc68f6473ce4f02fc5d2b87ad92e2eb555a

Commit: 9ec4ccc68f6473ce4f02fc5d2b87ad92e2eb555a

Tree: e11ad31594fe66fcfa449960f4b128ec9315d93e

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
Do not invoke UB in BigInt shr operations

Shifting a value of type T by an amount that's greater or equal to the
size of the type itself is UB.

Spotted by @tgschultz

```

## Parents

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

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