# stage2 sema: Implement comptime result for comparison of uint to comptime value · gitcafe/zig

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

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

Visibility: public

Requested revision: a7a508fcd9a961ea9d903f9065556a02b4045b95

Requested commit: a7a508fcd9a961ea9d903f9065556a02b4045b95

Commit: a7a508fcd9a961ea9d903f9065556a02b4045b95

Tree: 32a18d391650f39f4b67bf679fc213b2446a6b21

Author: Cody Tapscott

Committer: Cody Tapscott

## Message

```
stage2 sema: Implement comptime result for comparison of uint to comptime value

This adds a comptime result when comparing a comptime value to an
unsigned integer. For example:
   ( 0 <= (unsigned runtime value)) => true
   (-1 <  (unsigned runtime value)) => true
   ((unsigned runtime value) < -15) => false

```

## Parents

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

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