# stage1: fix issue with bigint_add that caused incorrect results when adding a large and a small comptime_int of differing sign · gitcafe/zig

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

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

Visibility: public

Requested revision: 54634991a2b9767d20725b20a2c273b6db60a825

Requested commit: 54634991a2b9767d20725b20a2c273b6db60a825

Commit: 54634991a2b9767d20725b20a2c273b6db60a825

Tree: e28b228599f2d1e58a7100b60c182fb3adb2fe6a

Author: riverbl

Committer: Veikka Tuominen

## Message

```
stage1: fix issue with bigint_add that caused incorrect results when adding a large and a small comptime_int of differing sign

stage1: fix issue with to_twos_complement that caused a compile error when performing wrapping addition on two signed ints, both of which have the minimum possible value

```

## Parents

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

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