diff options
| author | Ben Noordhuis <info@bnoordhuis.nl> | 2018-06-20 21:51:18 +0200 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-06-20 17:37:38 -0400 |
| commit | eb6a8e6a3bba061c4a7fb18f53976e1fb683c3d4 (patch) | |
| tree | 137d90a657f1b6fe178f4eba4436c7ebfa2638b0 /test/compile_errors.zig | |
| parent | 4eca75c53b4679e7e31df1505d22a5b618a2d797 (diff) | |
| download | zig-eb6a8e6a3bba061c4a7fb18f53976e1fb683c3d4.tar.gz zig-eb6a8e6a3bba061c4a7fb18f53976e1fb683c3d4.zip | |
fix f128 remainder division bug
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
Diffstat (limited to 'test/compile_errors.zig')
0 files changed, 0 insertions, 0 deletions
