# stage1: fix regression of shift by negative value error · gitcafe/zig

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

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

Visibility: public

Requested revision: 803178353976fe4ef343aef25dfa6d8e418ef88f

Requested commit: 803178353976fe4ef343aef25dfa6d8e418ef88f

Commit: 803178353976fe4ef343aef25dfa6d8e418ef88f

Tree: 22b79769fc5e0038332d3f2c39333311894cc7e2

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage1: fix regression of shift by negative value error

The previous commit (38b2d6209239f0dad7cb38e656d9d38506f126ca) regressed
the compile error test case for when doing saturating shift left of a
comptime-known negative RHS.

This commit additionally fixes the error for regular shifts in addition
to saturating shifts.

```

## Parents

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

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