rts/CNF: Fix fixup comparison function
Previously we would implicitly convert the difference between two words to an int, resulting in an integer overflow on 64-bit machines. Fixes #16992 (cherry picked from commit c00c81a5)
Showing
- libraries/ghc-compact/tests/T16992.hs 22 additions, 0 deletionslibraries/ghc-compact/tests/T16992.hs
- libraries/ghc-compact/tests/T16992.stdout 1 addition, 0 deletionslibraries/ghc-compact/tests/T16992.stdout
- libraries/ghc-compact/tests/all.T 5 additions, 0 deletionslibraries/ghc-compact/tests/all.T
- rts/sm/CNF.c 3 additions, 2 deletionsrts/sm/CNF.c
libraries/ghc-compact/tests/T16992.hs
0 → 100644
libraries/ghc-compact/tests/T16992.stdout
0 → 100644
Please register or sign in to comment