Skip to content

ghc-prim: fix hs_cmpxchg64 function prototype

Cheng Shao requested to merge type-dance/ghc:hs_cmpxchg64_fix_prototype into master

hs_cmpxchg64 must return a StgWord64, otherwise incorrect runtime results of 64-bit MO_Cmpxchg will appear in 32-bit unregisterised builds, which go unnoticed at compile-time due to C implicit casting in .hc files.

Merge request reports