Skip to content

Commit 0ef7a9d

Browse files
authored
Keep LONGDOUBLE_ADJ >= sizeof(long double)
1 parent 7429c5a commit 0ef7a9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/ffi_c/Call.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
#define FLOAT32_ADJ (4)
7272
#define FLOAT64_ADJ (8)
7373
#define ADDRESS_ADJ (sizeof(void *))
74-
#define LONGDOUBLE_ADJ (ffi_type_longdouble.alignment)
74+
#define LONGDOUBLE_ADJ (ffi_type_longdouble.alignment > sizeof(long double) ? ffi_type_longdouble.alignment : sizeof(long double))
7575

7676
#endif /* USE_RAW */
7777

0 commit comments

Comments
 (0)