# add compile error for shifting by negative comptime integer · gitcafe/zig

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

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

Visibility: public

Requested revision: 4b64c777ee465abb1f4a6bf2d31ba39805d5fa54

Requested commit: 4b64c777ee465abb1f4a6bf2d31ba39805d5fa54

Commit: 4b64c777ee465abb1f4a6bf2d31ba39805d5fa54

Tree: 2295fd5b511f1fe46b69905fa383c9389044572a

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
add compile error for shifting by negative comptime integer

closes #698

```

## Parents

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

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