We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
LONGDOUBLE_ADJ >= sizeof(long double)
1 parent 7429c5a commit 0ef7a9dCopy full SHA for 0ef7a9d
ext/ffi_c/Call.c
@@ -71,7 +71,7 @@
71
#define FLOAT32_ADJ (4)
72
#define FLOAT64_ADJ (8)
73
#define ADDRESS_ADJ (sizeof(void *))
74
-#define LONGDOUBLE_ADJ (ffi_type_longdouble.alignment)
+#define LONGDOUBLE_ADJ (ffi_type_longdouble.alignment > sizeof(long double) ? ffi_type_longdouble.alignment : sizeof(long double))
75
76
#endif /* USE_RAW */
77
0 commit comments