diff options
author | Sam James <sam@gentoo.org> | 2021-10-02 20:30:41 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-10-02 20:31:01 +0100 |
commit | 4cbfbfe255fc82a05f0a9d3ecdf6e8dce7d9a4ee (patch) | |
tree | fe1c69f5522abd448cefa4e1cef670e3d020d9f0 /dev-ruby/ffi/files | |
parent | app-misc/mc: Removed unused USE flag description (diff) | |
download | gentoo-4cbfbfe255fc82a05f0a9d3ecdf6e8dce7d9a4ee.tar.gz gentoo-4cbfbfe255fc82a05f0a9d3ecdf6e8dce7d9a4ee.tar.bz2 gentoo-4cbfbfe255fc82a05f0a9d3ecdf6e8dce7d9a4ee.zip |
dev-ruby/ffi: fix 32-bit test failure
Thanks-to: Tee KOBAYASHI <xtkoba@gmail.com>
Closes: https://bugs.gentoo.org/815130
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-ruby/ffi/files')
-rw-r--r-- | dev-ruby/ffi/files/ffi-1.14.2-32bit-long-double.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dev-ruby/ffi/files/ffi-1.14.2-32bit-long-double.patch b/dev-ruby/ffi/files/ffi-1.14.2-32bit-long-double.patch new file mode 100644 index 000000000000..7373a8c28cda --- /dev/null +++ b/dev-ruby/ffi/files/ffi-1.14.2-32bit-long-double.patch @@ -0,0 +1,19 @@ +https://bugs.gentoo.org/815130 +https://github.com/ffi/ffi/commit/315d66e7b0768856d589e15bf597f4816d5cd524 + +From 0ef7a9d7d22c9a7779def3f8c7f0166d996a2401 Mon Sep 17 00:00:00 2001 +From: xtkoba <69125751+xtkoba@users.noreply.github.com> +Date: Wed, 29 Sep 2021 19:24:44 +0900 +Subject: [PATCH] Keep `LONGDOUBLE_ADJ >= sizeof(long double)` + +--- a/ext/ffi_c/Call.c ++++ b/ext/ffi_c/Call.c +@@ -71,7 +71,7 @@ + #define FLOAT32_ADJ (4) + #define FLOAT64_ADJ (8) + #define ADDRESS_ADJ (sizeof(void *)) +-#define LONGDOUBLE_ADJ (ffi_type_longdouble.alignment) ++#define LONGDOUBLE_ADJ (ffi_type_longdouble.alignment > sizeof(long double) ? ffi_type_longdouble.alignment : sizeof(long double)) + + #endif /* USE_RAW */ + |