]> granicus.if.org Git - python/commitdiff
remove long double from ctypes value union
authorBenjamin Peterson <benjamin@python.org>
Mon, 5 Sep 2016 23:24:52 +0000 (16:24 -0700)
committerBenjamin Peterson <benjamin@python.org>
Mon, 5 Sep 2016 23:24:52 +0000 (16:24 -0700)
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

index 394534bff53fc82ae515ae2274f0450aaa08ddf5..d1e04773976faabe43b95e6aa8f0f58c48bc1e50 100644 (file)
@@ -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;