Skip to content

Commit

Permalink
common: use alignof instead of sizeof
Browse files Browse the repository at this point in the history
Fix #157
  • Loading branch information
sekrit-twc committed Oct 5, 2021
1 parent 42b0d40 commit 6dcda35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zimg/common/align.h
Expand Up @@ -15,8 +15,8 @@ constexpr int ALIGNMENT_RELAXED = 32;
constexpr int ALIGNMENT = 16;
constexpr int ALIGNMENT_RELAXED = 16;
#else
constexpr int ALIGNMENT = sizeof(long double);
constexpr int ALIGNMENT_RELAXED = sizeof(long double);
constexpr int ALIGNMENT = alignof(long double);
constexpr int ALIGNMENT_RELAXED = alignof(long double);
#endif

/**
Expand Down

0 comments on commit 6dcda35

Please sign in to comment.