# Sema: add error for signed integer division · gitcafe/zig

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

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

Visibility: public

Requested revision: 92568a0097a6aeb0cd59f1f3dae43d0ecd7a18d0

Requested commit: 92568a0097a6aeb0cd59f1f3dae43d0ecd7a18d0

Commit: 92568a0097a6aeb0cd59f1f3dae43d0ecd7a18d0

Tree: 7416433a436f7f0f92192377d182b7aea255d949

Author: martinhath

Committer: GitHub

## Message

```
Sema: add error for signed integer division

stage1 error reads

error: division with 'i32' and 'comptime_int': signed integers must use @divTrunc, @divFloor, or @divExact

Fixes: #12339
```

## Parents

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

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