From bbc8fe1841457089f81bd48cfee08b91ba8445b8 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 5 Sep 2016 16:24:52 -0700 Subject: [PATCH] remove long double from ctypes value union It is unused. It also forces a 16-byte alignment, which creates problems because Python's allocator only uses 8-byte alignment. --- Modules/_ctypes/ctypes.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/Modules/_ctypes/ctypes.h b/Modules/_ctypes/ctypes.h index 394534bff5..d1e0477397 100644 --- a/Modules/_ctypes/ctypes.h +++ b/Modules/_ctypes/ctypes.h @@ -72,7 +72,6 @@ union value { #ifdef HAVE_LONG_LONG PY_LONG_LONG ll; #endif - long double D; }; /* @@ -344,7 +343,6 @@ struct tagPyCArgObject { #ifdef HAVE_LONG_LONG PY_LONG_LONG q; #endif - long double D; double d; float f; void *p; -- 2.50.1