mirror of
https://github.com/ziglang/zig.git
synced 2025-12-12 17:23:09 +00:00
- neg can only overflow, if a == MIN - case `-0` is properly handled by hardware, so overflow check by comparing `a == MIN` is sufficient - tests: MIN, MIN+1, MIN+4, -42, -7, -1, 0, 1, 7.. See #1290