Fix endian issues in ghc-heap
ClosedPublic

Authored by trommler on Jul 22 2018, 1:14 PM.

Details

Summary

In test heap_all arity and n_args were swapped on big endian
systems.

Take care of endianness when reading parts of a machine word
from a Word.

This fixes one out of 36 failing tests reported in Trac #15399.

Test Plan

validate

Diff Detail

Repository
rGHC Glasgow Haskell Compiler
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
trommler created this revision.Jul 22 2018, 1:14 PM
simonmar accepted this revision.Jul 23 2018, 2:33 AM

:LGTM

This revision is now accepted and ready to land.Jul 23 2018, 2:33 AM
This revision was automatically updated to reflect the committed changes.