Skip to content

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

Description

@MaddTheSane

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...
                ^             ~~~~~~~~~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions