Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Big Endian #13

Open
lehins opened this issue Sep 8, 2021 · 0 comments
Open

Big Endian #13

lehins opened this issue Sep 8, 2021 · 0 comments

Comments

@lehins
Copy link

lehins commented Sep 8, 2021

Same issue as here: byteverse/bytesmith#19

I'd like to point out that there is a bug in ghc <8 .10 that makes this code to not work correctly on Big Endian machines: https://gitlab.haskell.org/ghc/ghc/-/issues/20338

Code that uses buggy targetByteOrder function is here https://github.com/andrewthad/posix-api/blob/19f2404e350db098fd3fbb4660a4ff1b2f1278d7/src/Posix/Socket.hs#L1287-L1308

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant