mirror of
https://github.com/ziglang/zig.git
synced 2026-01-10 09:25:11 +00:00
The modulo operation computed rem(b+rem(a,b), b) which produces -1 for a=1 and b=2. Switch to a - b * trunc(a/b) which produces the expected result, 1. closes #1137