# Sema: implement peer type resolution of signed and unsigned ints · gitcafe/zig

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

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

Visibility: public

Requested revision: b4d6e85a339e971829404dc1a260bde4062735f8

Requested commit: b4d6e85a339e971829404dc1a260bde4062735f8

Commit: b4d6e85a339e971829404dc1a260bde4062735f8

Tree: 7debe384b184d4b8c24f3d35e2ec8a32b9da8cd0

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Sema: implement peer type resolution of signed and unsigned ints

This allows stage2 to build more of compiler-rt.

I also changed `-%` to `-` for comptime ints in the div and mul
implementations of compiler-rt. This is clearer code and also happens to
work around a bug in stage2.

```

## Parents

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

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