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
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
Loading
Please register or sign in to comment