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

Apple Silicon: sizeof(long double) != 16 #36

Open
MaddTheSane opened this issue Nov 26, 2020 · 1 comment
Open

Apple Silicon: sizeof(long double) != 16 #36

MaddTheSane opened this issue Nov 26, 2020 · 1 comment

Comments

@MaddTheSane
Copy link

When building against Apple Silicon, SANE fails to build due to the size of long double being the same as double: static_assert failed due to requirement 'sizeof(long double) == 16' "unexpected long double size"

This might require creation of a struct, or finding a different floating type.

mpw/toolbox/sane.cpp:176:3: error: static_assert
      failed due to requirement 'sizeof(long double) == 16' "unexpected long
      double size"
                static_assert(sizeof(long double) == 16, "unexpected lon...
                ^             ~~~~~~~~~~~~~~~~~~~~~~~~~
@ksherlock
Copy link
Owner

Thanks. I wonder if Rosetta handles it.

It should be fixed now.

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

2 participants