We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb707d8 commit e2ec44dCopy full SHA for e2ec44d
src/libcompat/regions.c
@@ -75,7 +75,8 @@
75
#define ALIGN(x, n) (((x) + ((n) - 1)) & ~((n) - 1))
76
#define PALIGN(x, n) ((void *)ALIGN((__rcintptr)(x), n))
77
#ifdef __GNUC__
78
-#define RALIGNMENT __alignof(double)
+// Alignment of allocated objects. Mac OS X needs long double (aka 16).
79
+#define RALIGNMENT __alignof(long double)
80
#define PTRALIGNMENT __alignof(void *)
81
#define ALIGNMENT_LONG __alignof(unsigned long)
82
#else
0 commit comments